Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #include xinput.ahk
  2.  
  3. XInput_Init()
  4. Loop {
  5. Loop, 4 {
  6. if State := XInput_GetState(A_Index-1) {
  7. buts := State.wButtons
  8. ;ToolTip, %buts%
  9. ;UnComment the above line to see your button combos
  10. if (buts = replaceWithNumberCombo) {
  11. Send {replaceWithButtonToPress Down}
  12. sleep 50
  13. Send {replaceWithButtonToPress Up}
  14. Sleep 50
  15.  
  16. tempCount := A_Index
  17.  
  18. Loop, {
  19. if State := XInput_GetState(tempCount-1) {
  20. buts := State.wButtons
  21. if (buts = replaceWithNumberCombo) {
  22. Sleep, 100
  23. }
  24. else
  25. {
  26. break
  27. }
  28. }
  29. }
  30. }
  31. }
  32. }
  33. Sleep, 100
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement