pause and resume a script with a single button
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