this is what i need to do guys....
i want to push xbutton1 and as long as i hold it down i want it do do this command in a coninuous loop. As soon as I let off, I want it to stop. This will be a command to help me in gaming. So I need to know a command that will let me hold down a key and keep the script running continously as long as the key is held down.
XButton1::
Send, /
sleep 25
loop command
Started by
tvl101
, Sep 04 2005 08:50 PM
1 reply to this topic
#1
Posted 04 September 2005 - 08:50 PM
#2
Posted 04 September 2005 - 10:36 PM
I think this will do it:
XButton1::
SetKeyDelay 10, 25 ; 10 is the delay between presses, 25 is how long to hold it down.
Loop
{
Send, /
if not GetKeyState("XButton1", "P") ; XButton1 has been physically released.
break ; Break out of the loop.
}
return




