Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. ;Lines starting with a ; are comments and are not part of the actual script.
  2. ;If you want to deactivate a flask press(e.g. because it is your hp flask) simply add a ; to the start of the line
  3.  
  4. ;this line makes the script only work when Path of Exile is the active window
  5. #IfWinActive, ahk_class POEWindowClass
  6.  
  7. ;The key (or mouse button) you press to activate the script. For a list of supported "keys" and combinations, see https://autohotkey.com/docs/Hotkeys.htm
  8. ;XButton1 = "Back"-Button on my mouse. For a complete list of special keys, see https://autohotkey.com/docs/KeyList.htm
  9. XButton1::
  10. {
  11. ;Initialize random delays between 57 and 114 ms (arbitrary values, may be changed)
  12. random, delay2, 17, 53
  13. random, delay3, 17, 53
  14. random, delay4, 18, 54
  15. random, delay5, 19, 55
  16.  
  17. ;send, 1 ;simulates the keypress of the 1 button. If you use another button, change it!
  18. send, 1
  19.  
  20. ;sleep, %delay2%
  21. send, 2 ;simulates the keypress of the 2 button. If you use another button, change it!
  22.  
  23. ;sleep, %delay3%
  24. send, 3 ;simulates the keypress of the 3 button. If you use another button, change it!
  25.  
  26. sleep, %delay4%
  27. send, 4 ;simulates the keypress of the 4 button. If you use another button, change it!
  28.  
  29. sleep, %delay5%
  30. send, 5 ;simulates the keypress of the 5 button. If you use another button, change it!
  31. }
  32. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement