I tested the script by changing the "send" into "tooltip". It should be working just fine. Why do you think it's wrong? What is happening vs what you expect?
Edit: OK, going back to the original post, you still want it to automatically work. Correct me if that's wrong. (Your $F8 script you shared works just one at a time with each press of F8.)
I'd use SetTimer in this to make it automatically send every half second. F8 can turn it on or off. You can change that to F1 if you wish.
list={F1},{enter},{F2},{click}
stringsplit, list, list,`,
Counter = 0
$F8::SetTimer, myTimer, % (toggle:=!toggle)?"500":"Off"
myTimer:
Counter := (Counter=list0) ? (1) : (Counter+1)
send % list%counter%
return
Problem with this simple approach is there's no variation in the time. I would consider this as a way to still use the timer but change up the timing.
list={F1},{enter},{F2},{click}
stringsplit, list, list,`,
mist=-500,-1200,-150,-50
stringsplit, mist, mist,`,
Counter = 0
$F8::SetTimer, myTimer, % (toggle:=!toggle)?"-500":"Off"
myTimer:
Counter := (Counter=list0) ? (1) : (Counter+1)
send % list%counter%
SetTimer, myTimer, % mist%counter%
return
Edited due to lack of parentheses in the toggling. Thanks Xtra for the correction. I tested being able to turn it on, then off, but never on again ^_^'
Edited by Exaskryz, 29 October 2015 - 08:39 PM.