Guest User

D2LOD - Hotkey-Right Click AHK

a guest
Jan 25th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. ; Recommended for performance
  2. #NoEnv
  3.  
  4. ; Better and more reliable
  5. SendMode Input
  6.  
  7. SetTitleMatchMode, 1
  8.  
  9. ; Press the Q key and click and un-click the right mouse button
  10. ~Q::
  11. IfWinActive, Diablo II
  12. {
  13. if ( not GetKeyState("RButton" , "P") )
  14. Sleep, 60
  15. Click down right
  16. KeyWait, Q, Up
  17. Click up right
  18. }
  19. return
  20.  
  21. ; Press the W key and click and un-click the right mouse button
  22. ~W::
  23. IfWinActive, Diablo II
  24. {
  25. if ( not GetKeyState("RButton" , "P") )
  26. Sleep, 60
  27. Click down right
  28. KeyWait, W, Up
  29. Click up right
  30. }
  31. return
  32.  
  33. ; Press the E key and click and un-click the right mouse button
  34. ~E::
  35. IfWinActive, Diablo II
  36. {
  37. if ( not GetKeyState("RButton" , "P") )
  38. Sleep, 60
  39. Click down right
  40. KeyWait, E, Up
  41. Click up right
  42. }
  43. return
  44.  
  45. ; Press the R key and click and un-click the right mouse button
  46. ~R::
  47. IfWinActive, Diablo II
  48. {
  49. if ( not GetKeyState("RButton" , "P") )
  50. Sleep, 60
  51. Click down right
  52. KeyWait, R, Up
  53. Click up right
  54. }
  55. return
  56.  
  57. ; Press the A key and click and un-click the right mouse button
  58. ~A::
  59. IfWinActive, Diablo II
  60. {
  61. if ( not GetKeyState("RButton" , "P") )
  62. Sleep, 60
  63. Click down right
  64. KeyWait, A, Up
  65. Click up right
  66. }
  67. return
  68.  
  69. ; Press the S key and click and un-click the right mouse button
  70. ~S::
  71. IfWinActive, Diablo II
  72. {
  73. if ( not GetKeyState("RButton" , "P") )
  74. Sleep, 60
  75. Click down right
  76. KeyWait, S, Up
  77. Click up right
  78. }
  79. return
  80.  
  81. ; Press the U key and click and un-click the right mouse button
  82. ~D::
  83. IfWinActive, Diablo II
  84. {
  85. if ( not GetKeyState("RButton" , "P") )
  86. Sleep, 60
  87. Click down right
  88. KeyWait, D, Up
  89. Click up right
  90. }
  91. return
  92.  
  93. ; Press the F key and click and un-click the right mouse button
  94. ~F::
  95. IfWinActive, Diablo II
  96. {
  97. if ( not GetKeyState("RButton" , "P") )
  98. Sleep, 60
  99. Click down right
  100. KeyWait, F, Up
  101. Click up right
  102. }
  103. return
  104.  
  105. ; Press the T key and click and un-click the right mouse button
  106. ~T::
  107. IfWinActive, Diablo II
  108. {
  109. if ( not GetKeyState("RButton" , "P") )
  110. Sleep, 60
  111. Click down right
  112. KeyWait, T, Up
  113. Click up right
  114. }
  115. return
  116.  
  117. ; Press the Y key and click and un-click the right mouse button
  118. ~Y::
  119. IfWinActive, Diablo II
  120. {
  121. if ( not GetKeyState("RButton" , "P") )
  122. Sleep, 60
  123. Click down right
  124. KeyWait, Y, Up
  125. Click up right
  126. }
  127. return
  128.  
  129. ; Press the G key and click and un-click the right mouse button
  130. ~G::
  131. IfWinActive, Diablo II
  132. {
  133. if ( not GetKeyState("RButton" , "P") )
  134. Sleep, 60
  135. Click down right
  136. KeyWait, G, Up
  137. Click up right
  138. }
  139. return
  140.  
  141. ; Press the H key and click and un-click the right mouse button
  142. ~H::
  143. IfWinActive, Diablo II
  144. {
  145. if ( not GetKeyState("RButton" , "P") )
  146. Sleep, 60
  147. Click down right
  148. KeyWait, H, Up
  149. Click up right
  150. }
  151. return
  152.  
  153. ^NumpadSub::
  154. Suspend
  155. return
Advertisement
Add Comment
Please, Sign In to add comment