Func WaitButton( $Window, $ButtonText, $ButtonClass, $TimeOut = 0 ) If WinExists( $Window ) Then Local $ButtonHandle = 0 Local $InitTimer = TimerInit( ) While 1 $ButtonHandle = ControlGetHandle( $Window, $ButtonText, $ButtonClass ) If @error <> 1 Then ExitLoop If $TimeOut Then If TimerDiff( $InitTimer ) >= ( $TimeOut * 1000 ) Then ExitLoop EndIf Sleep( 100 ) Wend EndIf EndFunc
So, can this "command" be added by default in autoit?






