本帖最后由 79036875 于 2012-4-26 23:05 编辑 ;以下为ACDSee10自动安装代码
ShellExecute("2ACDSee10.msi") ;运行msi安装包
WinWait("ACDSee 10 (Simplified Chinese) - InstallShield 向导")
WinActivate("ACDSee 10")
Sleep("2000")
ControlClick("ACDSee 10 (Simplified Chinese) - InstallShield 向导","下一步(&N) >","Button1")
Sleep("2000")
ControlClick("ACDSee 10 (Simplified Chinese) - InstallShield 向导","下一步(&N) >","Button5")
Sleep("2000")
ControlClick("ACDSee 10 (Simplified Chinese) - InstallShield 向导","下一步(&N) >","Button5")
Sleep("2000")
ControlClick("ACDSee 10 (Simplified Chinese) - InstallShield 向导","下一步(&N) >","Button1")
Sleep("2000")
ControlClick("ACDSee 10 (Simplified Chinese) - InstallShield 向导","安装(&I)","Button1")
Sleep("60000")
ControlCommand("ACDSee 10 (Simplified Chinese) - InstallShield 向导","","Button5","uncheck","")
Sleep("1000")
ControlClick("ACDSee 10 (Simplified Chinese) - InstallShield 向导","完成(&F)","Button1")
因为各种电脑配置高低不同,请问有什么办法可以用条件或者循环语句而不用sleep的?
要用到什么语句?可否指点一下?刚刚学用这个脚本语言,谢谢大家 |