Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #SingleInstance Force
- SendMode Input
- SetWorkingDir %A_ScriptDir%
- Toggle := false
- F1::
- Toggle := !Toggle
- if (Toggle) {
- ToolTip, Script Activated - Running Loop
- SetTimer, SpamV, 100 ; Start spamming V
- SetTimer, RunLoop, -10 ; Start the main loop
- } else {
- ToolTip, Script Deactivated
- SetTimer, SpamV, Off ; Stop spamming V
- }
- SetTimer, RemoveToolTip, -2000
- return
- F2::ExitApp
- SpamV:
- if (Toggle) {
- Random, randDelay, 100, 200
- Send, v
- Sleep, %randDelay%
- }
- return
- RunLoop:
- while (Toggle) {
- ; Hold A for 1050ms (V still spamming in background)
- Send, {a down}
- Sleep, 1100
- Send, {a up}
- ; Sleep 5000ms (V still spamming)
- Sleep, 5000
- ; Hold D for 1000ms (V still spamming)
- Send, {d down}
- Sleep, 1000
- Send, {d up}
- ; Sleep 30000ms (V still spamming)
- Sleep, 30000
- }
- return
- RemoveToolTip:
- ToolTip
- return
Advertisement
Add Comment
Please, Sign In to add comment