|
在做个一程序的自动安装,但是卡在输入序列号那里了,无法继续。在此请教高手指导。
具体是这一步无非输入序列号:ControlSend("EasyScan 安装程序", "","[CLASS:Edit; INSTANCE:1]","ES-LDY0-7706-SBIS-N3E")
写的脚本如下:
Run("EasyScan_Setup_2006.02.10_1509.exe")
Wait for the Notepad to become active. The classname "Notepad" is monitored instead of the window title
WinWaitActive("EasyScan 安装程序")
Now that the Notepad window is active type some text
Send("!n")
WinWaitActive("EasyScan 安装程序")
ControlClick("EasyScan 安装程序","我同意该许可协议的条款","Button3")
Send("{tab}{tab}","!n")
Now quit by pressing Alt-F and then scrolling down (simulating the down arrow being pressed six times) to the Exit menu
WinWaitActive("EasyScan 安装程序")
ControlSend("EasyScan 安装程序", "","[CLASS:Edit; INSTANCE:1]","ES-LDY0-7706-SBIS-N3E")
WinWaitActive("EasyScan 安装程序")
Send("!n")
WinWaitActive("EasyScan 安装程序")
Send("!n")
WinWaitActive("EasyScan 安装程序")
Send("!n")
WinWaitActive("EasyScan 安装程序")
Send("!n")
WinWaitActive("EasyScan 安装程序")
Send("!n")
WinWaitActive("EasyScan 安装程序")
Send("!f")
界面框为:[img][/img]
谢谢高手指定 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|