Guest User

DaS3 jump/kick autohotkey script

a guest
May 26th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. ; OPTIONS
  2. ;====================================================================================================
  3. ;#NoEnv ;no idea
  4. ;#UseHook ;no idea
  5. #SingleInstance Force ;no idea
  6. #IfWinActive ahk_class DarkSouls2 ;This means the script only runs in the Dark Souls 2 window.
  7. #IfWinActive ahk_class FDPclass ;This means the script only runs in the Dark Souls 3 window.
  8. SendMode Input ;no idea
  9. SetWorkingDir %A_ScriptDir% ;no idea
  10.  
  11. ;============================== Main Script ==============================
  12.  
  13. ;jumping
  14. t:: ;this is the button to trigger jumping
  15. Send {w up}{a up}{s up}{d up} ;stops your movement
  16. sleep 31 ;must be high so DaS3 registers
  17. Send {W down} ;rest press W and E in slight delay and releases all keys, beware you
  18. Sleep 15 ;will be motionless at the end of the action. So issue some direction command right away
  19. Send {E down} ;this must be your R2 button. Edit it here to your key, or set E as R2 in game. Its just my key layout
  20. Sleep 50
  21. Send {W up}
  22. Send {E up}
  23. ;At the end of the move, detects what direction you are holding and represses it
  24. Sleep 100
  25. if (GetKeyState("W", "P")){
  26. Send {W down}
  27. }
  28. if (GetKeyState("A", "P")){
  29. Send {A down}
  30. }
  31. if (GetKeyState("D", "P")){
  32. Send {D down}
  33. }
  34. if (GetKeyState("S", "P")){
  35. Send {S down}
  36. }
  37. return
  38.  
  39. ;kick
  40. c:: ;its c this time for kick
  41. Send {w up}{a up}{s up}{d up} ;same
  42. sleep 31
  43. Send {W down}
  44. Sleep 15
  45. Send {Z down} ;This must be your R1 keyboard button
  46. Sleep 50
  47. Send {W up}
  48. Send {Z up}
  49. ;At the end of the move, detects what direction you are holding and represses it
  50. Sleep 100
  51. if (GetKeyState("W", "P")){
  52. Send {W down}
  53. }
  54. if (GetKeyState("A", "P")){
  55. Send {A down}
  56. }
  57. if (GetKeyState("D", "P")){
  58. Send {D down}
  59. }
  60. if (GetKeyState("S", "P")){
  61. Send {S down}
  62. }
  63. return
  64.  
  65. ;Pressing Escape will always ensure that hotkeys are turned on
  66. ;Double pressing it will send the actuall escape command
  67. Escape::
  68. if (overlay = false){
  69. Send {Escape Down}
  70. Sleep 50
  71. Send {Escape Up}
  72. }
  73. else{
  74. }
  75. overlay := false
  76. Hotkey, t, On
  77. Hotkey, c, On
  78. return
  79.  
  80. Home::
  81. Send {Home Down}
  82. Sleep 50
  83. Send {Home Up}
  84. overlay := !overlay
  85. if (overlay = true){
  86. Hotkey, t, Off
  87. Hotkey, c, Off
  88. }
  89. else{
  90. Hotkey, t, On
  91. Hotkey, c, On
  92. }
  93. Sleep, 500
  94. return
Add Comment
Please, Sign In to add comment