Advertisement
Dyndrilliac

D3 AHK Script

Jun 6th, 2021 (edited)
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; This is a AutoHotKey script designed to be used with Diablo III
  2. ; Pressing F1 will constantly activate skill 1, F2 will constantly activate skill 2, F3 will constantly activate skill 3, and F4 will constantly activate skill 4
  3. ; The keys are toggleable.
  4. ; Pressing ` will quickly allow you to salvage without the confirmation dialog. It clicks where the cursor is located and presses the enter key.
  5.  
  6. Thread, interrupt, 0
  7.  
  8. togF1 := 0
  9. $F1::
  10. togF1 := !togF1
  11. if (togF1) {
  12.     SetTimer, RepeatOne
  13. } else {
  14.     SetTimer, RepeatOne, Off
  15. }
  16. return
  17.  
  18. RepeatOne:
  19.     Send {1}
  20. return
  21.  
  22.  
  23. togF2 := 0
  24. $F2::
  25. togF2 := !togF2
  26. if (togF2) {
  27.     SetTimer, RepeatTwo
  28. } else {
  29.     SetTimer, RepeatTwo, Off
  30. }
  31. return
  32.  
  33. RepeatTwo:
  34.     Send {2}
  35. return
  36.  
  37.  
  38. togF3 := 0
  39. $F3::
  40. togF3 := !togF3
  41. if (togF3) {
  42.     SetTimer, RepeatThree
  43. } else {
  44.     SetTimer, RepeatThree, Off
  45. }
  46. return
  47.  
  48. RepeatThree:
  49.     Send {3}
  50. return
  51.  
  52. togF4 := 0
  53. $F4::
  54. togF4 := !togF4
  55. if (togF4) {
  56.     SetTimer, RepeatFour
  57. } else {
  58.     SetTimer, RepeatFour, Off
  59. }
  60. return
  61.  
  62. RepeatFour:
  63.     Send {4}
  64. return
  65.  
  66. $`:: salvageArtifact()
  67.  
  68. salvageArtifact()
  69. {
  70.     delay_client := 50
  71.     delay_server := 350
  72.    
  73.     Click left
  74.     sleep delay_client
  75.     Send {enter}
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement