Skip to content

Instantly share code, notes, and snippets.

@cornradio
Created February 2, 2023 03:03
Show Gist options
  • Save cornradio/8452cc73ce5ac1999285ab923095a87b to your computer and use it in GitHub Desktop.
Save cornradio/8452cc73ce5ac1999285ab923095a87b to your computer and use it in GitHub Desktop.
ahk script for terraria mouse holidng and auto clicking
;shift + lbutton to trigger holding (auto mineing)
;click Lbutton again to stop
+LButton::Send, {LButton Down}
; click f5 to trigger rapid clicking (fight)
; click f6 to stop rapid clicking
stop_signal := False
F5::
stop_signal == False
Loop
{
if (stop_signal == true)
Return
Send, {LButton}
Sleep, 10
if (stop)
{
break
}
}
Return
F6::
stop_signal := True
Return
; click f11 to exit
Exit,
F11::ExitApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment