本帖最后由 m765555 于 2013-5-26 16:41 编辑 WinMinimizeAll()
Run("setupbeta_9.2.0.1001p.exe")
WinWaitActive("360安全卫士","")
WinActivate("360安全卫士","")
ControlClick("360安全卫士","","[CLASS:Button; INSTANCE:3]")
WinWaitActive("360安全卫士","自定义安装:")
WinActivate("360安全卫士","自定义安装:")
ControlCommand("360安全卫士","自定义安装:","[CLASS:Button; INSTANCE:10]","UnCheck")
ControlCommand("360安全卫士","自定义安装:","[CLASS:Button; INSTANCE:11]","UnCheck")
ControlCommand("360安全卫士","自定义安装:","[CLASS:Button; INSTANCE:12]","UnCheck")
ControlClick("360安全卫士","","[CLASS:Button; INSTANCE:9]")
ProcessWait("360safe.exe")
ProcessClose("360safe.exe")
ProcessWait("360preview.exe")
ProcessClose("360preview.exe")
ProcessWait("360tray.exe")
ProcessClose("360tray.exe")
While 1
If ProcessWaitClose("360preview.exe") And ProcessWaitClose("360safe.exe") Then
ExitLoop
EndIf
Sleep(100)
WEnd
Sleep(3000)
;删除开始菜单的多余图标 开始
;Run('RunDll32 shell32.dll,Options_RunDLL 1')打开开始菜单的右键的.win7
FileDelete(@DesktopDir&"\360软件管家.lnk")
MouseMove(120, 755)
MouseDown("right")
MouseUp("right")
Send("{down 2}")
Send("{enter}")
MouseMove(120, 755)
MouseDown("right")
MouseUp("right")
Send("{down 4}")
Send("{enter}")
;删除开始菜单的多余图标 结束
MouseMove(953, 680)
MouseDown("right")
MouseUp("right")
Send("{down 7}")
Send("{enter}")
Exit 0
只能运行到40行代码处,后面从43行代码开始好像就不运行了,单独运行43行后面的代码感觉正常的。请教一下各位兄弟,研究一下看,代码错在哪里了? |