Page 1 of 1

On CLick Script event

PostPosted: Wed Jun 15, 2016 4:57 pm
by chrisr
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!

Re: On CLick Script event

PostPosted: Wed Jun 15, 2016 7:13 pm
by JustynR
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

Re: On CLick Script event

PostPosted: Wed Jun 15, 2016 11:43 pm
by chrisr
Justyn!

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

Re: On CLick Script event

PostPosted: Thu Jun 16, 2016 10:32 am
by aferors
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