Skip to content

Instantly share code, notes, and snippets.

@kangzoel
Created June 8, 2022 12:16
Show Gist options
  • Save kangzoel/908bc6805798b380ecd3daa0042200c1 to your computer and use it in GitHub Desktop.
Save kangzoel/908bc6805798b380ecd3daa0042200c1 to your computer and use it in GitHub Desktop.
; Stardew Valley Animation Cancel v1.0.0
; Author: Kangzoel
; Github: https://github.com/kangzoel
SetTitleMatchMode, 2
; You can change the following F8 to something like MButton (middle button aka mouse scroll wheel click)
; or any other supported buttons: https://www.autohotkey.com/docs/KeyList.htm
KeyBind = F8
#If WinActive("ahk_exe StardewModdingAPI.exe") OR WinActive("ahk_exe Stardew Valley.exe")
KeyBindStr := KeyBind
Hotkey, %KeyBind%, Button
Button:
While GetKeyState(KeyBindStr, "P") {
SendEvent {LButton Down}
Sleep 10
SendEvent {LButton Up}
Sleep 90
SendEvent {r Down}{Delete Down}{RShift Down}
Sleep 5
SendEvent {r Up}{Delete Up}{RShift Up}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment