How can i start macro when i press a key and stop macro when i finish press that key
example
when i click F8 the mascto strat
Label>startmacro
send>a
Goto>startmacro
when i stop press key F8 i want che macro stop
Help me please and sorry for my english
how can start macro when press key and stop when don't press
Moderators: Dorian (MJT support), JRL
-
- Newbie
- Posts: 15
- Joined: Sat Dec 12, 2009 11:20 pm
I'd use OnEvent>Key_Down. Look up OnEvent in help.
Code: Select all
//Use Shift + Esc to close this macro
//F8 key = VK119
OnEvent>Key_Down,VK119,0,MainMacro
SRT>MainMacro
send>a
Wait>0.01
END>MainMacro
Label>IdleLoop
Wait>0.01
Goto>IdleLoop