Func _WinWait($wTitle, $wText = "", $Time = 0)
If $Time <> 0 Then Local $SleepTime = TimerInit()
While 1
If WinExists($wTitle, $wText) Then
Return 1
ExitLoop
EndIf
If $Time <> 0 Then
If TimerDiff($SleepTime) >= $Time Then
Return 0
ExitLoop
EndIf
EndIf
TrayGetMsg()
WEnd
EndFunc
[au3]Func _WinWait($wTitle, $wText = "", $Time = 0)
If $Time 0 Then Local $SleepTime = TimerInit()
While 1
If WinExists($wTitle, $wText) Then
Return 1
...
78391493 发表于 2009-6-11 12:03