Stop a macro through another

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
math22
Newbie
Posts: 12
Joined: Sun Dec 03, 2017 1:00 am

Stop a macro through another

Post by math22 » Mon Jan 15, 2018 2:48 pm

I have two instances of macro scheduler opened
macro.png
If i try set two different hotkeys to stop each instance, when i close and open again only one hotkey will be loaded
macro3.png
I have a macro running in instance B(2)
macro2.png
Sometimes i need call another macro using a hotkey then i have instance A for it, i need when the macro running in instance A the macro in B stop.

But i have no idea how can i stop the second macro running thought the macro opened in instance A, hotkeys saved to stop each macro are lost when i reopen they, and i keep having one hotkey to stop the two instance.

Im trying do somethin like when macro A run herself stop others macro running.
Cant find any macro stop command.

math22
Newbie
Posts: 12
Joined: Sun Dec 03, 2017 1:00 am

Re: Stop a macro through another

Post by math22 » Mon Jan 15, 2018 3:25 pm

Ok i got it:

Code: Select all

//VK119=F8
OnEvent>Key_Down,VK119,0,STOP

SRT>STOP
  MDL>Stopping
  Exit>0
END>STOP


Label>start
  my code here
  my code here
  my code here
GoTo>start
One more doubt, theres any event or anything to detect if a macros running ?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts