注意:以下写法不能加引号
1. 脚本文件目录 %A_ScriptDir%
的写法:
#Include %A_ScriptDir%/include/myFunctions.ahk
%A_ScriptDir%/3D_Art.html
2. 绝对路径写法
读取文本文档的第一行
FileReadLine, firstLine, D:/Works/AutoHotkey/3D_Art.html, 1
MsgBox %firstLine%
以上的路径写法竟然还可以有空格在文件名中也可以,如下
FileReadLine, firstLine, D:/Works/AutoHotkey/3D Art.html, 1
MsgBox %firstLine%
注意:以下写法必须加引号
1. 在函数传参时必须加引号:
if (Loopily_find_the_image_on_area_and_return("images/360 Browser/Plus.png", 2000, 0, 2240, 40) = true) {
Send ^{Tab}
Sleep 200
Send ^w
Sleep 200
}