|
我安装“[单片机模拟仿真软件].proteus_setup74”到最后无法运行,请高人指点:
以下是代码:
Run("D:\proteus\proteussetup74.exe")
WinWaitActive("Proteus Professional - InstallShield Wizard","&Next >")
Send("!N")
WinWaitActive("Proteus Professional - InstallShield Wizard","&Yes")
Send("!Y")
WinWaitActive("Proteus Professional - InstallShield Wizard","&Next >")
Send("!N")
WinWaitActive("Proteus Professional - InstallShield Wizard","&Next >")
Send("!N")
WinWaitActive("Labcenter Licence Manager 1.6","&Install")
Send("!B")
WinWaitActive("Open and Read Licence Key File(s)","查找范围(&I):")
Send("D:\proteus\SCG_LICENCE.lxk")
Sleep(1000)
Send("!o")
WinWaitActive("Labcenter Licence Manager 1.6","&Install")
Send("!I")
WinWaitActive("Labcenter Licence Manager 1.6","是(&Y)")
Send("!Y")
WinWaitActive("Labcenter Licence Manager 1.6","&Close")
ControlClick("[Class: Button]","","[CLASS:Button; INSTANCE:6]")
WinClose("Labcenter Licence Manager 1.6","&Close")
WinWaitActive("Proteus Professional - InstallShield Wizard","1212374198")
Send("!N")
WinWaitActive("Proteus Professional - InstallShield Wizard","&Next >")
Send("!N")
WinWaitActive("Proteus Professional - InstallShield Wizard","Destination Folder")
;ControlClick("Proteus Professional - InstallShield Wizard","&Next >","Button1")
Send("{Tab}")
Send("!N")
;WinWaitActive("Proteus Professional - InstallShield Wizard","")
;Send("{tab}")
;Send("{tab}")
WinWaitActive("[Class: SysTreeView32]","[CLASS:SysTreeView32; INSTANCE:1]")
;ControlClick("[Class: SysTreeView32]","","[CLASS:SysTreeView32; INSTANCE:1]")
;ControlCommand("[Class: SysTreeView32]","","[CLASS:SysTreeView32; INSTANCE:1]","Check", "") |
|