Code: Select all
#NoEnv
#SingleInstance Force
keys_timeline := [["o", 1], ["r", 100], ["e", 1000], ["o", 200]]
return
$o::
start := A_TickCount
t_index := 1
while (GetKeyState("o", "P")) {
elapsed := A_TickCount - start
if (elapsed > keys_timeline[t_index][2]) {
start := A_TickCount
if (t_index < keys_timeline.length()) {
t_index++
} else {
Send % keys_timeline[keys_timeline.MaxIndex()][1]
}
} else {
Send % keys_timeline[t_index][1]
}
}
return
orrrrrrreeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeoooooo