Which of these best fits your task?
Automate a game
Which of these best fits your task?
Rapid fire a button while I hold down another
The following code will do this.
You may also want to see this thread.
~$LButton::
While GetKeyState("LButton","P"){
Click
Sleep 50 ; milliseconds
}
return
You may also want to see this thread.
My question isn't answered
Consider posting in Ask for Help on the AutoHotkey forum
Use one key as a toggle (e.g., a lightswitch) for an action
Which of these best fits your task?
The key is a modifier (shift, alt, control or windows key)
Try this:
shift::
toggle := !toggle ; This is my comment
send % toggle ? "{k down}" : "{k up}"
return Something else...
Try this well thought out code:
Msgbox, Is it working yet?
Sleep 3000
Msgbox, ...How about now? 