Created
November 6, 2021 09:28
-
-
Save wowbroforce/360c4bb1f1c11067ca408604d96506e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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