[color:green]; syntax: $tinput(<timeout>,<param1 of $input>,<param2 of $input>,....)
; <timeout> is milliseconds, eg 3000 for a 3-second timeout.
; Example: //echo -s $tinput(4000,This dialog will close in 4 seconds,o,This is the titlebar)[/color]
alias tinput {
if $1 !isnum 1- { return }
.timerInput -m 1 $1 if ($appactive) sendkeys % $!+ {F4}
var %a = $input($2,$3,$4,$5,$6)
.timerInput off
return %a
}
alias sendkeys {
var %a = sendkeys $+ $ticks
.comopen %a WScript.Shell
if !$comerr { .comclose %a $com(%a,SendKeys,3,bstr,$1-) }
}