Created
June 8, 2022 12:16
-
-
Save kangzoel/908bc6805798b380ecd3daa0042200c1 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
; 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