Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. ; LINES THAT START WITH ; ARE COMMENTS AND IGNORED BY AUTOHOTKEY
  2. ;
  3. ;
  4. ; Simple Taeguk v1.0 -- An AutoHotKey script for Taeguk monks
  5. ; by /u/miragu
  6. ; Released to the Public Domain
  7. ;
  8. ; Based on SUNWUKOTRON v1.3 by /u/monkeyking7000
  9. ; http://www.reddit.com/r/Diablo3Monks/wiki/swk-autohotkey
  10. ;
  11. ;
  12. ; >>> WHAT IS THIS FOR? <<<
  13. ;
  14. ; This autohotkey script helps with refreshing Taeguk stacks by automatically
  15. ; casting Sweeping Wind every second. When using Inna's set with 6.60% RCR,
  16. ; SW is essentially free and can be spammed indefinitely.
  17. ;
  18. ; There is a "trick" to spam continuously using just the keyboard (set SW to
  19. ; a keypad number, hold it, press and release numlock) but there are two
  20. ; problems. First, not everyone has a keypad; and second, other keys can
  21. ; override the spamming, which happened to me with force move, prompting the
  22. ; development of this script.
  23. ;
  24. ; >>> HOW TO USE <<<
  25. ;
  26. ; Press [F1] to start spamming SW (key [4] by default). Press [F1] again
  27. ; to stop. Customize these keys below.
  28. ;
  29. ; >>> CUSTOMIZING <<<
  30. ;
  31. ; Change the values below to match your setup.
  32.  
  33. ; SWToggleKey -- Key that toggles SW spamming on/off (Default "*F1", read:F1
  34. ; key with any modifier)
  35. SWToggleKey := "*F1"
  36.  
  37. ; SWKey -- Key press to send when spamming is active, set to your Sweeping
  38. ; Wind key (Default "4")
  39. SWKey := "1"
  40.  
  41. ; LoopIntervalMin -- Minimum time in milliseconds between loops (Default 1000)
  42. ; NOTE: Strongly recommended you do not set this below 100
  43. LoopIntervalMin := 800
  44.  
  45. ; LoopIntervalMax -- Maximum time in milliseconds between loops (Default 1500)
  46. LoopIntervalMax := 1000
  47.  
  48.  
  49.  
  50. ; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  51. ; !!!!!! DO NOT CHANGE ANYTHING BELOW THIS LINE !!!!!
  52. ; !!!!!! CHANGE VALUES IN CUSTOMIZING SECTION ABOVE !!!!!
  53. ; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  54.  
  55. ; Limit scope of all hotkeys below to Diablo3 window
  56. #ifwinactive ahk_class D3 Main Window Class
  57. Hotkey, IfWinActive, ahk_class D3 Main Window Class
  58.  
  59. GoSub, Init
  60. Return
  61.  
  62. ; Set everything up
  63. Init:
  64. _EnableSW := False
  65. HotKey,%SWToggleKey%,ToggleSW
  66.  
  67. SetKeyDelay, 33, 0
  68. Return
  69.  
  70. ; SW enable/disable
  71. ToggleSW:
  72. _EnableSW := !_EnableSW
  73. If _EnableSW {
  74. SetTimer AutoLoop, On
  75. }
  76.  
  77. Return
  78.  
  79. ; The actual spam loop
  80. AutoLoop:
  81. While _EnableSW
  82. {
  83. If WinActive("ahk_class D3 Main Window Class")
  84. {
  85. Send %SWKey%
  86. }
  87. Random, random, %LoopIntervalMin%, %LoopIntervalMax%
  88. Sleep %random%
  89. }
  90. Return
  91.  
  92. #ifwinactive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement