Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance force ; Don't have multiple instances of this script running.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- KeyDown = 0 ; variable to track the toggle state
- ^F4:: ; Ctrl+F4 to start
- KeyDown := !KeyDown ; Toggle states
- If KeyDown
- SendInput {w down} ; Hold down the key the first time you press the key combination
- Else
- SendInput {w up} ; Release the key
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement