Code: Select all
send("{tab}")
sleep(100)
SendText("string")
;simplify to
sendEx("{tab}", 100, "string")
sendEx(arr*) {
for v in arr {
if (v is integer) {
sleep(v)
} else {
if (v ~= "i)^\{\w+(?: (?:down|up|\d+))?\}") ;case of {ctrl down}|{a 2}|{ctrl up}
send(v)
else
SendText(v)
}
}
}