Jump to content


Stop from repeating when held down


  • Please log in to reply
3 replies to this topic

#1 Guests

  • Guests

Posted 15 April 2012 - 03:43 AM

F3:: 
Send {Numpad0}
Sleep, 40
Send {Numpad2} 
Sleep, 40
Send {Numpad6}
Sleep, 40
Send {NumpadMult}
return

I need to make this not repeat when held down (just send once). Not sure how to do it.

#2 Guests

  • Guests

Posted 15 April 2012 - 04:32 AM

F3::
KeyWait, F3
Send {Numpad0}
Sleep, 40
Send {Numpad2}
Sleep, 40
Send {Numpad6}
Sleep, 40
Send {NumpadMult}
return

(untested)

#3 dmg

dmg
  • Members
  • 1736 posts

Posted 15 April 2012 - 04:55 AM

A slight adjustment:
F3::

Send {Numpad0}

Sleep, 40

Send {Numpad2}

Sleep, 40

Send {Numpad6}

Sleep, 40

Send {NumpadMult}

KeyWait, F3

return
Placing the KeyWait at the top requires the key to be released before continuing, while placing it at the bottom prevents it from executing more than once no matter how long the key is held. :)

#4 Guests

  • Guests

Posted 15 April 2012 - 10:13 AM

Thanks!