Last active
December 5, 2019 20:46
-
-
Save pabloogc/c3565bb0de9e1938c3542051afe3d92e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#IfWinActive, ahk_class POEWindowClass | |
active:=true | |
`:: | |
active:=!active | |
return | |
$2:: | |
if(!active) { | |
send, 2 | |
return | |
} | |
;Initialize random delays between 57 and 114 ms (arbitrary values, may be changed) | |
random, delay2, 57, 114 | |
random, delay3, 57, 114 | |
random, delay4, 57, 114 | |
random, delay5, 57, 114 | |
;send, 1 ;simulates the keypress of the 1 button. If you use another button, change it! | |
;sleep, %delay2% | |
send, 2 ;simulates the keypress of the 2 button. If you use another button, change it! | |
sleep, %delay3% | |
send, 3 ;simulates the keypress of the 3 button. If you use another button, change it! | |
sleep, %delay4% | |
send, 4 ;simulates the keypress of the 4 button. If you use another button, change it! | |
sleep, %delay5% | |
send, 5 ;simulates the keypress of the 5 button. If you use another button, change it! | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment