OnEvent>Key_Down,VK119,0,MainMacro
SRT>MainMacro
send>XXX
END>MainMacro
Label>IdleLoop
Wait>0.01
Goto>IdleLoop
Whit this macro when i press F8 the computer send XXX
i need when i stop press F8 the computer move the mouse at
MouseMove>220,30
Can anyone help me please?
How cam make an action when the macro finish?
Moderators: Dorian (MJT support), JRL
-
- Newbie
- Posts: 15
- Joined: Sat Dec 12, 2009 11:20 pm
Set a variable "flag" to tell the script when you've stopped pressing the key.
Code: Select all
OnEvent>Key_Down,VK119,0,MainMacro
Let>F8Flag=0
SRT>MainMacro
send>XXX
Let>F8Flag=1
END>MainMacro
Label>IdleLoop
Wait>0.01
If>F8Flag>0
Add>F8Flag,1
If>F8Flag>10
Let>F8Flag=0
MouseMove>220,30
EndIf
EndIf
Goto>IdleLoop