autoit执行脚本时为什么会自动暂停?编写程序安装脚本,我找不出脚本哪地方出问题,脚本执行暂停如图的位置
代码如下:run("d:\moldflow6.1\mpipc_chs.exe");winwaitactive("Setup-MoldflowPlasticsInsight...
代码如下:
run("d:\moldflow6.1\mpipc_chs.exe");
winwaitactive("Setup - Moldflow Plastics Insight");
send("!n");
winwaitactive("Setup - Moldflow Plastics Insight");
send("Setup - Moldflow Plastics Insight", "{down 3}");
Sleep(1000);
send("!n");
winwaitactive("Setup - Moldflow Plastics Insight","Accept");
send("!n");
winwaitactive("Setup - Moldflow Plastics Insight","Setup will install Moldflow Plastics Insight into the following folder.");
send("!n");
if winwaitactive("Folder Exists","The folder:")=1 then;
send("!y");
endif
winwaitactive("Setup - Moldflow Plastics Insight","Select User Folder");
send("!n");
图:
就是停在这个页面不执行了,请好心人给与解答。 展开
run("d:\moldflow6.1\mpipc_chs.exe");
winwaitactive("Setup - Moldflow Plastics Insight");
send("!n");
winwaitactive("Setup - Moldflow Plastics Insight");
send("Setup - Moldflow Plastics Insight", "{down 3}");
Sleep(1000);
send("!n");
winwaitactive("Setup - Moldflow Plastics Insight","Accept");
send("!n");
winwaitactive("Setup - Moldflow Plastics Insight","Setup will install Moldflow Plastics Insight into the following folder.");
send("!n");
if winwaitactive("Folder Exists","The folder:")=1 then;
send("!y");
endif
winwaitactive("Setup - Moldflow Plastics Insight","Select User Folder");
send("!n");
图:
就是停在这个页面不执行了,请好心人给与解答。 展开
展开全部
winwaitactive("Setup - Moldflow Plastics Insight","Setup will install Moldflow Plastics Insight into the following folder.");
这句一直在等待窗口激活,所以就停在这个界面了。
从你的截图来看,是因为当前焦点在输入框内,导致send("!n");被输入框接收而未能发送到窗口。
实际中send函数是很不可靠的,建议优先考虑用ControlClick来操作按钮点击。
这句一直在等待窗口激活,所以就停在这个界面了。
从你的截图来看,是因为当前焦点在输入框内,导致send("!n");被输入框接收而未能发送到窗口。
实际中send函数是很不可靠的,建议优先考虑用ControlClick来操作按钮点击。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询