Skip to content

Instantly share code, notes, and snippets.

@insomniac-afk
Created June 28, 2022 15:49
Show Gist options
  • Save insomniac-afk/80bb014af648aab6cec4931ce7eed26e to your computer and use it in GitHub Desktop.
Save insomniac-afk/80bb014af648aab6cec4931ce7eed26e to your computer and use it in GitHub Desktop.
keys = 1,2,3,4,5,XButton1,XButton2,q,e,r,z,x,f ; replace with buttons you wish to spam
Loop Parse, keys, `,
Hotkey *%A_LoopField%, KEY
Return
#IfWinActive, FINAL FANTASY XIV
KEY:
StringTrimLeft key, A_ThisHotKey, 1
t := 0.2 ; initial delay [seconds]
Loop {
SendInput {BLIND}{%key%}
KeyWait %key%, T%t%
If ErrorLevel = 0
Break
t := 0.1 ; delay *= 1, while delay > 0.2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment