本帖最后由 goodylq 于 2010-10-10 08:24 编辑
If WinExists("USTS-jf Client V1.0.6") Then
WinSetState("USTS-jf Client V1.0.6","",@SW_HIDE)
WinActivate("USTS-jf Client V1.0.6")
winwaitactive("USTS-jf Client V1.0.6")
ControlSetText("","","[CLASS:TEdit; INSTANCE:2]","yc10042740")
ControlSetText("","","[CLASS:TEdit; INSTANCE:1]","****")
ControlSetText("","","[CLASS:TMaskEdit; INSTANCE:1]","60")
ControlCommand("","","[CLASS:TCheckBox; INSTANCE:2]","Check","")
ControlSend("","","[CLASS:TButton; INSTANCE:2]","{SPACE}")
WinWait("信息")
WinClose("信息")
WinSetState("USTS-jf Client V1.0.6","",@SW_HIDE)
WinActivate("USTS-jf Client V1.0.6")
winwaitactive("USTS-jf Client V1.0.6")
ControlSetText("","","[CLASS:TEdit; INSTANCE:2]","yc10042740")
ControlSetText("","","[CLASS:TEdit; INSTANCE:1]","****")
ControlSetText("","","[CLASS:TMaskEdit; INSTANCE:1]","60")
ControlCommand("","","[CLASS:TCheckBox; INSTANCE:2]","Check","")
ControlSend("","","[CLASS:TButton; INSTANCE:3]","{SPACE}")
WinWait("校园网计费客户端")
WinKill("校园网计费客户端","")
Else
Run("jfc.exe")
WinSetState("USTS-jf Client V1.0.6","",@SW_HIDE)
WinActivate("USTS-jf Client V1.0.6")
winwaitactive("USTS-jf Client V1.0.6")
ControlSetText("","","[CLASS:TEdit; INSTANCE:2]","yc10042740")
ControlSetText("","","[CLASS:TEdit; INSTANCE:1]","****")
ControlSetText("","","[CLASS:TMaskEdit; INSTANCE:1]","60")
ControlCommand("","","[CLASS:TCheckBox; INSTANCE:2]","Check","")
ControlSend("","","[CLASS:TButton; INSTANCE:3]","{SPACE}")
WinWait("校园网计费客户端")
WinKill("校园网计费客户端","")
EndIf
Exit
现在软件窗口已经隐藏了,后台运行,就剩下弹出的需要确认的窗口。
请问各位高手,这个脚本里,如何让弹出的“信息”窗口和"校园网计费客户端"不出现???这两个窗口都只是仅有确认键。 |