Iv got a script with lots of different subroutines, I start the subroutines with buttons.
The problem is, when I click another button on my dialog, I want it to go to the subroutine associated with that button, and stop the subroutine that is in progress.
For example:
SRT>sub
repeat>task
Something.. . . ...
until>task=10
End>sub
SRT>stopsub
something......
END>stopsub
how can my button to start stopsub, which I want to use to stop the loop that sub is performing?
So basically,how can I make a button jump straight to a different subroutine even if another one is currently cycling through a loop?
Basic Script Help Needed
Moderators: JRL, Dorian (MJT support)
You might try an OnEvent handler
Code: Select all
OnEvent>EventType,EventParm,ExtraParm,Subroutine
Not supported in Macro Scheduler Lite.
Establishes an event handler. When the event occurs the script branches to the specified Subroutine.