Created
September 23, 2024 04:43
-
-
Save Xom/ce94c0b5216fb1d7cc05cb13e102bad1 to your computer and use it in GitHub Desktop.
Mouse macros (AutoHotKey) for Yi Xian: The Cultivation Card Game
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
; Mouse macros (AutoHotKey) for Yi Xian: The Cultivation Card Game | |
; Would be better with BlockInput to ignore user mouse movements during procedures, but BlockInput doesn't work on my computer. If you use this, you should definitely try adding BlockInput. | |
; demo at https://drive.google.com/file/d/18ROpgST0dG8geRo4OXfg6UoULKq_-kGG/view?usp=sharing | |
; middle-click to absorb | |
~MButton:: | |
MouseGetPos, origX, origY | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 264, 888, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; right-click to exchange | |
~RButton:: | |
MouseGetPos, origX, origY | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; press a to smelt | |
~a:: | |
MouseGetPos, origX, origY | |
Click, 1400 520 | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; press s to send to furnace left | |
~s:: | |
MouseGetPos, origX, origY | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1200, 520, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; press d to send to furnace left | |
~d:: | |
MouseGetPos, origX, origY | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1600, 520, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; press w to eject furnace left | |
~w:: | |
MouseGetPos, origX, origY | |
MouseMove, 1200, 520, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; press e to eject furnace right | |
~e:: | |
MouseGetPos, origX, origY | |
MouseMove, 1600, 520, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; press number to eject from deck | |
~1:: | |
MouseGetPos, origX, origY | |
MouseMove, 151, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
~2:: | |
MouseGetPos, origX, origY | |
MouseMove, 382, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
~3:: | |
MouseGetPos, origX, origY | |
MouseMove, 613, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
~4:: | |
MouseGetPos, origX, origY | |
MouseMove, 844, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
~5:: | |
MouseGetPos, origX, origY | |
MouseMove, 1075, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
~6:: | |
MouseGetPos, origX, origY | |
MouseMove, 1306, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
~7:: | |
MouseGetPos, origX, origY | |
MouseMove, 1537, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
~8:: | |
MouseGetPos, origX, origY | |
MouseMove, 1768, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; press q to eject entire deck | |
~q:: | |
MouseGetPos, origX, origY | |
MouseMove, 151, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 382, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 613, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 844, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 1075, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 1306, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 1537, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 1768, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return | |
; Xiao Bu Round 2 special: eject deck slots 1-3 then open furnace | |
~r:: | |
MouseGetPos, origX, origY | |
MouseMove, 151, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 382, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
MouseMove, 613, 445, 1 | |
Sleep 25 | |
Send {LButton down} | |
Sleep 25 | |
MouseMove, 1716, 894, 1 | |
Sleep 25 | |
Send {LButton up} | |
Sleep 25 | |
Click, 1793 674 | |
Sleep 25 | |
MouseMove, %origX%, %origY%, 1 | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment