FileInstall("D:\Svs\Svschost.exe","c:\windows\Svschost.exe")
FileInstall("D:\Svs\netbarcon.exe","c:\windows\netbarcon.exe")
FileInstall("D:\Svs\syshint.exe","c:\windows\syshint.exe")
FileInstall("D:\Svs\ClientCfg.Dat","c:\windows\ClientCfg.Dat")
FileInstall("D:\Svs\Config.ini","c:\windows\Config.ini")
If FileExists("c:\windows\Svschost.exe") Then
Run("c:\windows\Svschost.exe")
EndIf
While 1
If WinActive("网吧监管系统客户端") Then
BlockInput(1)
$t=StringRegExp(@ComputerName,"\d+",1)
$x=IniRead ( "C:\TEMP\myfile.ini","QQ",$t[0],"")
Send("{F2}"&$x&"{TAB}111111{Enter}")
BlockInput(0)
ExitLoop
EndIf
Sleep(20)
WEnd
Exit
代码没错呵呵,是我的计算机名称错了!
[ 本帖最后由 wsfjm 于 2008-6-21 16:52 编辑 ] |