Skip to content

Instantly share code, notes, and snippets.

@wowbroforce
Created November 6, 2021 09:28
Show Gist options
  • Save wowbroforce/360c4bb1f1c11067ca408604d96506e0 to your computer and use it in GitHub Desktop.
Save wowbroforce/360c4bb1f1c11067ca408604d96506e0 to your computer and use it in GitHub Desktop.
; Hold 'Shift' to start the script, hold 'Control' to stop.
#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.
delay := 666
isDisabled := true
Loop {
Sleep delay
if (GetKeyState("Control")) {
isDisabled := true
}
if (GetKeyState("Shift")) {
isDisabled := false
}
if (isDisabled) {
continue
}
Send, 2
Sleep delay
Send, 1
Sleep delay
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment