Soomin papa Posted December 12, 2021 Share Posted December 12, 2021 I'm asking for help with the AHK hotkey script. I got help here regarding AHK scripts for PCSX2. And I googled further, but there are some things that I haven't been able to solve. I want to make the desired hotkey action when the select button is pressed and the arrow key of the xbox360 (x-input) pad is pressed. For example, if you press the DPAD right button while holding down the select button, the save slot will change to the next slot, and if you press the DPAD left button while holding down the select button, the save slot will change to the previous slot. I also want to create a combination of a select button and an analog joystick. The purpose is to configure the hotkeys as above. I desperately want help. Thank you for your interest. Here is the script I made. Joy5:: Joy6:: Joy7:: Joy8:: Press= SetTimer, WatchAxis, 5 return WatchAxis: { GetKeyState, SelectButton, Joy7 GetKeyState, StartButton, Joy8 GetKeyState, L1Button, Joy5 GetKeyState, R1Button, Joy6 GetKeyState JoyZButtons, JoyZ JoyZButtons := Round(JoyZButtons) PressPrev= %Press% PressNext= %Press% if (SelectButton = "D") { if (L1Button = "D") { ; Load state SendInput {F3} Sleep 750 } else if (R1Button = "D") { ; Save state SendInput {F1} Sleep 750 } else if (JoyZButtons > 60) { ; Prev slot Press=LZ if Press= %PressPrev% return SendInput, {Shift down}{F2 down} Sleep 750 SendInput, {F2 up}{Shift up} Press= } else if (JoyZButtons < 40) { ; Next slot Press=RZ if Press= %PressNext% return SendInput {F2} Sleep 750 Press= } else if (StartButton = "D") { ; This section closes PCSX2 when pressing Escape WinClose, ahk_exe {{{StartupEXE}}} } } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.