Advertisement
littlebelialskey

DS3singleKeyKick1.4.ahk

Jun 29th, 2024 (edited)
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 1.12 KB | Source Code | 0 0
  1. ; DS3singleKeyKick1.4.ahk
  2.  
  3. #NoEnv  
  4. SendMode Input  
  5. SetWorkingDir %A_ScriptDir%  
  6. #SingleInstance Force
  7.  
  8. introText:=" THERES  ALREADY SOME TEST KEYBINDS YOU CAN TRY  : `n - XButton1 (mouse4) `n - MButton (mouse3)`n - Delete`n - Numpad Del`n - Numpad Enter`n - NumpadAdd (didnt work for me) "
  9.  
  10. MsgBox, %introText%
  11. MsgBox, "Kill switch : F12 at any moment"
  12. MsgBox, "DS3singleKeyKick1.4.ahk, basically makes kicking usable on DS3"
  13.    
  14.  
  15. kick(sleepTime:=20){
  16.  
  17.     Send {z down}
  18.     Sleep, %sleepTime%
  19.     Send {LButton down}
  20.     Sleep, %sleepTime%
  21.     Send {LButton up}
  22.     Sleep, %sleepTime%
  23.     Send {z up}
  24. }
  25.  
  26. ; Testing ...
  27.  
  28. ; 50 not working, just swings
  29. MButton::
  30.     kick(50)
  31. return
  32.  
  33. ; Swings one, then kicks
  34. Del::
  35.     kick(33)
  36. return
  37.  
  38. ; OK
  39. NumpadDel::
  40.     kick(34)
  41. return
  42.  
  43. ; kinda bad
  44. NumpadEnter::
  45.     kick(40)
  46. return
  47.  
  48. ; Doesn't work at all
  49. NumpadAdd::
  50.     kick()
  51. return
  52.  
  53.  
  54. ; THIS ONE WORKS VERY GOOD (it's the first button on the left side of my mouse so very handy)
  55. XButton1::
  56.     kick(35)
  57. return
  58.  
  59. ; ======================================================== KILLSWITCH
  60. F12::
  61.     MsgBox "Script interrompu"
  62.     ExitApp
  63. return
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement