I've been playing some clicker heroes for a while now, but right now I'm away from my computer for about a week so I'm playing on my laptop. on my computer I had some simple macro programs build into the keyboard, but there's no such thing on my laptop, so I've been using autohotkey for that.
right now I've a very simple script for 4 keybindings that activates the skills in a certain order, but since I'm using autohotkey anyways I'd like to automate this process aswell so the script will automatically loop these skill combinations for me.
the script right now is
!Ins:: Sleep, 500 Send 8 Sleep, 100 Send 5 Sleep, 100 Send 4 Sleep, 100 Send 1 Sleep, 100 Send 2 Sleep, 100 Send 3 Sleep, 100 Send 7 return !Del:: Sleep, 500 Send 8 Sleep, 100 Send 3 Sleep, 100 Send 7 Sleep, 100 Send 1 Sleep, 100 Send 2 Sleep, 100 Send 4 return !PgUp:: Sleep, 500 Send 8 Sleep, 100 Send 6 Sleep, 100 Send 9 Sleep, 100 Send 1 Sleep, 100 Send 2 Sleep, 100 Send 3 Sleep, 100 Send 4 Sleep, 100 Send 5 Sleep, 100 Send 7 return !PgDn:: Sleep, 500 Send 8 Sleep, 100 Send 6 Sleep, 100 Send 9 Sleep, 100 Send 1 Sleep, 100 Send 2 Sleep, 100 Send 3 Sleep, 100 Send 4 Sleep, 100 Send 7 return
as you can see, I'm no coding genius, so I've no idea really on how to improve the script.
what I'd like is the script to stay like this, so I can still do this manually aswell, but when I press the hotkey combination ctrl+insert I want the script to do...
skill 869123457, wait 2 minutes and 30 seconds, skill 12, wait 2 minutes and 30 seconds,skill 12, wait 2 minutes and 30 seconds,skill 1234, wait 2 minutes and 30 seconds,skill 12, wait 2 minutes and 30 seconds,skill 12, wait 2 minutes and 30 seconds,skill 8541237, wait 2 minutes and 30 seconds,skill 12, wait 2 minutes and 30 seconds,skill 12, wait 2 minutes and 30 seconds,skill 1234, wait 2 minutes and 30 seconds,skill 12, wait 2 minutes and 30 seconds,skill 12, wait 2 minutes and 30 seconds
and when I press the hotkey combination again I want the script to stop completely, and if I were to press the hotkey combination again it'd have to start from the beginning again. I don't need the script to autoclick for me as I already have a program running for that. would it also be possible to perhaps have some sort of visual indication that the script is running? that way I know it's running or not to and won't accidentally be running the script while I'm doing other things...
I've been trying to figure it out myself, and it's probably related to the pause coding, but it's just all a bit too advanced for me