有可能性是这样:
Do
Sleep(10)
if WinExists("LockDlg") and WinExists("ActiveMovie Window") Then
WinWaitClose("LockDlg")
If winexists("登录失败") Then ContinueLoop
ExitLoop
EndIf
Until 0
If FileExists("C:\WINDOWS\system32\sysclient\Svschost.exe") Then Run("C:\WINDOWS\system32\sysclient\Svschost.exe")
While 1
If WinActive("网吧监管系统客户端") Then
BlockInput(1)
$x = IniRead("C:\WINDOWS\system32\sysclient\myfile.ini", "SD", @ComputerName, "")
If $x = '' Then
BlockInput(0)
Exit
EndIf
Send("{F2}" & $x & "{TAB}111111{Enter}")
BlockInput(0)
ExitLoop
EndIf
Sleep(10)
WEnd
Exit
[ 本帖最后由 liongodmien 于 2008-10-17 08:33 编辑 ] |