找回密码
 加入
搜索
查看: 4596|回复: 6

[AU3基础] 有关输入序列号的问题

  [复制链接]
发表于 2014-3-10 15:56:46 | 显示全部楼层 |阅读模式
在做个一程序的自动安装,但是卡在输入序列号那里了,无法继续。在此请教高手指导。
具体是这一步无非输入序列号: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]
谢谢高手指定

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2014-3-10 16:18:39 | 显示全部楼层
LZ用這個參數吧
ControlSetText
发表于 2014-3-11 09:09:22 | 显示全部楼层
模拟复制粘贴可以么
 楼主| 发表于 2014-3-11 10:45:32 | 显示全部楼层
谢谢,试一下到。
发表于 2014-3-11 15:10:59 | 显示全部楼层
简单一点,先发送一个(或几个,看需要)tab,然后发送注册码
 楼主| 发表于 2014-3-13 14:16:56 | 显示全部楼层
已找到问所在,谢谢各位高手。
发表于 2014-3-13 16:59:40 | 显示全部楼层
回复 6# 68020082


    问题在哪呢?可以解释一下吗?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-10 12:19 , Processed in 0.085653 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表