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.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- Space::
- Var := !Var
- If Var
- {
- SoundBeep, 1000, 100
- SetTimer, Spam, % (i:=!i) ? "0"
- }
- else
- {
- SoundBeep, 1000, 100
- Sleep 50
- SoundBeep, 1000, 100
- SetTimer, Spam, Off
- }
- return
- Spam:
- Send {1}
- Sleep 9700
- Send {2}
- Sleep 11500
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement