Would adding else if turbine isn't running to the "send z" part stop Z from being sent at the end of the cycle in game?
Almost good you've gotten me alot more progress than I had the night before.
Next step is figuring out a way to add in cooldown timers for each letter (example: wait 10 secs before a is available, wait 5 secs before B, wait 15 secs for C, wait 0.5 for D) so on so forth.
Awesome help from all of you guys, Thank you!!
nah, z would still send it.
varlist = a|b|c|d|e|f|g Loop, parse, varlist, | var%A_Index% := A_LoopField num = 1 #IfWinActive, ahk_class Turbine Device Class z:: If(var%Num% != "") { Send , % var%Num% num++ } else { num = 2 Send , % var%Num% } return
btw, I removed the "winget" command. the Notepad in that was also suposted to be replaced with the game class name, that's why the controlsend wasn't workin for ya =) lol.
try the above, and let us know.
now, about the cooldowns... do you mean ...
send a >> wait Asec >> send b >> wait Bsec >> send c >> wait Csec .. etc?
or do you mean ....
send all buttons (a through g) .. then check for all button timers and see if they are ready... only fire off each button, if they are ready.. (not being in order, like the previous example? )
or something else..