While 1
Select @HOUR = 08 And Not WinExists("脱机挂机")
FileCopy("C:\Documents and Settings\Administrator\桌面\au3\*.txt","C:\wwtemp.txt",1)
run("软件.exe")
$11="脱机挂机"
WinWaitActive($11)
Send("{ENTER}")
winActivate("打开")
controlClick("打开","","[ID:1148]")
send("c:\wwtemp.txt")
controlClick("打开","打开(&O)","Button2")
WinActive($11)
controlClick($11,"挂机","TButton9")
;然后晚上11点又执行以下的:
Select @HOUR = 23 And WinExists("脱机挂机")
WinActivate("脱机挂机")
Send("{TAB}")
send("{ENTER}")
Sleep(1500)
Winkill("脱机挂机","")
EndSelect
Sleep(90)
WEnd
|