Anonymous
public text v1 · immutablealias wait {
; thanks to whoever came up with this
if ($1) { var %duration = $1 }
else { var %duration = 1000 }
var %tmp = $+($ticks,.wsf)
var %cmd = <job id="js"><script language="jscript">WScript.Sleep( $+ %duration $+ );</script></job>
write %tmp %cmd
.comopen %tmp WScript.Shell | if !$comerr { .comclose %tmp $com(%tmp,Run,3,bstr,%tmp,uint,0,bool,true) }
.remove %tmp
}