Skip to content

Instantly share code, notes, and snippets.

@coilysiren
Created October 5, 2024 23:18
Show Gist options
  • Save coilysiren/85bc256b43b899ec8adf0586e4409f8f to your computer and use it in GitHub Desktop.
Save coilysiren/85bc256b43b899ec8adf0586e4409f8f to your computer and use it in GitHub Desktop.
Hotkey script 1:
```
#Requires AutoHotkey v2.0
#SingleInstance
!e:: {
static toggle := false
toggle := !toggle
func() => Send("e")
if (toggle) {
SetTimer(func, 100)
} else {
SetTimer(func, 0)
}
}
```
Hotkey script 2:
```
#Requires AutoHotkey v2.0
#SingleInstance
!LButton:: {
static toggle := false
toggle := !toggle
if (toggle) {
Click "Up"
} else {
Click "Down"
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment