Title
pause and resume a script with a single button
Post
I have a button which I want to pause a script with first click and on second resume.
I can pause and resume with single buttons ok but confused as how to write a script to do both!
Also is there a function that can call the status of script(A) as I would like different script(B) to exit if Script(A) paused
Any help would be appreciated
Have your script toggle the value of a global variable each time it is run. Use the value in the variable to determine whether or not to pause the script.
If [ Note $$Resume ]
Pause/Resume [Indefinitely]
End If
Set Variable [$$Resume ; Value: Not $$Resume ]
And make sure to select the "resume" button option when selecting this as the script to be performed.
There isn't any way to check the status of another script that I know of. What exactly are you trying to do with this combination of buttons and scripts? Perhaps there is an alternative approach that can be used.