Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- #SingleInstance force
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- SetGlobals(void)
- {
- global
- endLoop := 0
- return
- }
- F5 UP::
- {
- SleepDuration := 1000
- Loop
- {
- if(endLoop = 1)
- {
- endLoop := 0
- break
- }
- Send, {W DOWN}
- Sleep, %SleepDuration%
- Send, {W UP}
- Sleep, %SleepDuration%
- if(endLoop = 1)
- {
- endLoop := 0
- break
- }
- Send, {S DOWN}
- Sleep, %SleepDuration%
- Send, {S UP}
- Sleep, %SleepDuration%
- if(endLoop = 1)
- {
- endLoop := 0
- break
- }
- Send, {Space DOWN}
- Sleep, %SleepDuration%
- Send, {Space UP}
- Sleep, %SleepDuration%
- }
- return
- }
- F6 UP::
- {
- if(endLoop = 0)
- endLoop = 1
- else
- endLoop = 0
- return
- }
- F4 UP::
- {
- SetGlobals(0)
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement