1.1 软件和注释
Windows自动安装脚本语言
软件: autoit-v3-setup.exe
SciTE4AutoIt3.exe //专用脚本编辑器
后缀: *.au3
帮助文档: 安装目录下的 AutoIt.chm, 或编辑器中F1键打开
//注释
;MouseClick ( "left" , 3653, 184,2000,0 ) //单行注释 ;号开头
#comments-start //多行注释,成对出现
asfasdasd
#comments-end
1.2 windows编程中涉及的概念
Title--窗口标题
Class--窗口类
句柄--类似指向指针的指针,用于定位对象和资源
controlID--窗口内部控件ID,获得 "[CLASS:Edit; INSTANCE:1]" //CLASS和INSTANCE可使用WindowInfo工具在Control标签中查看到
a). 使用自带的Window Info工具查看窗口的Title和Class
b). window--窗口, Control--控件
窗口包含 下拉框、单选按钮等控件
1.3 au3生成exe
安装目录下的 Compile Script to .exe (x64) ,可选择图标
1.4 脚本传递参数-$CmdLine
$CmdLine[0] is number of parameters
$CmdLine[1] is param 1 (after the script name)
$CmdLine[2] is param 2 etc
1.5 windows设置定时任务
注:bat文件: 常规--选择"只在用户登录时运行" ; 操作项中"起始于(可选)"需要指定bat文件所在的目录
1.11 参考地址
1.12 au3十一天教程
1.13 AutoIt进行桌面操作
1.14 参考博客
1.5 window系统名中英文对照
1、右下角的通知区域(系统托盘) <==>System tray