On CLick Script event

Moderator: Moderator Group

On CLick Script event

Postby chrisr » Wed Jun 15, 2016 4:57 pm

Good afternoon all,
I am curious if anyone has looked into a warning window for a click script event. Where as if a person clicks a button, a window would pop up asking to confirm click. I am looking to do a power off sequence but would like the added security of one last "Are You Sure?" before the event happens. I have done similar by writing variables with a lock button. You "unlock" the toggle custom script button, and that would unlock and give you access to certain buttons. I would like to try a dialog window on this one.

Have a great rest of the week, and thanks in advance for any insight on this!

Cheers!
Last edited by chrisr on Wed Jun 15, 2016 11:44 pm, edited 1 time in total.
Thank You

ChrisR
SurfacePro3 - 2GHz i5 - 4GB ram - Windows 10 Pro - WD Pro 4.7 Rev2500 and WD v6
Sager Laptop - Intel 2.4GHz i7 3630QM - 16GB ram - Windows 7 Pro Svc Pack1 - Offline Manager v6
chrisr
 
Posts: 143
Joined: Tue Jan 26, 2016 10:50 pm

Re: On CLick Script event

Postby JustynR » Wed Jun 15, 2016 7:13 pm

If you have WD Pro or Ult you can use a Macro.

Try this:

Code: Select all
WDMacroBoxYesNo,Title,Content,MacroName1,MacroName2



This will bring up a message box and point to a Macro depending on what button you push.

You can find it in the help file, here http://www.coolux.de/root/downloads/support/Documentation/Helpfile/index.html#cmd_wdmacroboxyesno.htm
Or you can search for "message box" in the manual.


Cheers,

J
Justyn Roy
Field Application Specialist
Christie Digital
Toronto Ontario Canada
JustynR
 
Posts: 555
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada

Re: On CLick Script event

Postby chrisr » Wed Jun 15, 2016 11:43 pm

Justyn!

Thanks. I will definitely try this out. Much appreciated.
Thank You

ChrisR
SurfacePro3 - 2GHz i5 - 4GB ram - Windows 10 Pro - WD Pro 4.7 Rev2500 and WD v6
Sager Laptop - Intel 2.4GHz i7 3630QM - 16GB ram - Windows 7 Pro Svc Pack1 - Offline Manager v6
chrisr
 
Posts: 143
Joined: Tue Jan 26, 2016 10:50 pm

Re: On CLick Script event

Postby aferors » Thu Jun 16, 2016 10:32 am

there is also another option if you don't want to use a macros.

the >WDMessageBoxOkCancel,Title,Content<

this will just stop the script at this point and wont continue down the script until ok has been pressed, so you just need to ensure that its above what ever script your choosing to limit.

Cheers
Drew Ferors
Senior Technician
drew.ferors@tdc.com.au


Technical Direction Company, Sydney Australia
www.tdc.com.au
User avatar
aferors
 
Posts: 21
Joined: Thu Dec 13, 2012 12:18 am
Location: Sydney, Australia


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 6 guests