Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include xinput.ahk
- XInput_Init()
- Loop {
- Loop, 4 {
- if State := XInput_GetState(A_Index-1) {
- buts := State.wButtons
- ;ToolTip, %buts%
- ;UnComment the above line to see your button combos
- if (buts = replaceWithNumberCombo) {
- Send {replaceWithButtonToPress Down}
- sleep 50
- Send {replaceWithButtonToPress Up}
- Sleep 50
- tempCount := A_Index
- Loop, {
- if State := XInput_GetState(tempCount-1) {
- buts := State.wButtons
- if (buts = replaceWithNumberCombo) {
- Sleep, 100
- }
- else
- {
- break
- }
- }
- }
- }
- }
- }
- Sleep, 100
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement