回复 1# pdp320921
先用WinExists判断目标窗口是否存在,若存在再WinWaitActive激活窗口执行相关控件点击If WinExists("CTest - InstallShield Wizard","Setup Type") Then
WinWaitActive("CTest - InstallShield Wizard","Setup Type")
Send("{ENTER}")
WinWaitActive("CTest - InstallShield Wizard","Choose Destination Location")
Send("{ENTER}")
WinWaitActive("CTest - InstallShield Wizard","Select Program Folder")
Send("{ENTER}")
Send("{ENTER}")
Send("{ENTER}")
Send("{ENTER}")
ElseIf WinExists("Confirm Uninstall","Do you want to completely") Then
WinWaitActive("Confirm Uninstall","Do you want to completely")
Send("{TAB}")
Send("{ENTER}")
EndIf
|