
背景
方法一:sendKeys


方法二:AutoIT

step1:下载安装
-
AutoIT Window Info 识别Windows元素信息
-
Complie Script to .exe 将AutoIT编写的脚本编译成exe可执行文件
-
Run Script 运行AutoIT脚本
-
SciTE Script Editor 编写AutoIT脚本
step2:使用AutoIT

5、选择Complie Script to .exe工具把脚本编译为exe文件
6、Java代码本地执行exe文件












文章评论