Bootstrap

AutoIt入门学习

AutoIt知识点总结


 1. ; 表示单行注释
 2. #ce 中间写需要注释的文字 #cs  多行注释
 3. 

AutoIt代码块

const $path = "C:\Users\JHRZ\AppData\Local\Google\Chrome\Application\chrome.exe"
Run($path)

Dim $name = InputBox("您好", "请输入您的名称")
MsgBox(0, "您好" & $name, "欢迎来到xxx网站") 

Dim $age
$age = InputBox("您好", "请输入您的年龄")
If $age = "" Then 
  MsgBox(64, "结果", "您没有输入您的年龄")
else
  MsgBox(64, "结果", "您的年龄是" & $age & "岁")
EndIf

For $i = 1 to 10 step 2
  MsgBox(0, "您好呀", "欢迎张三" & $i)
Next

Dim $nr
$nr = ClipGet()
MsgBox(0, "温馨提示", "剪切板的内容是:" & $nr)

$result = DirCreate("D:\test1\")
MsgBox(0, "结果", $result)

$resultDir = DirGetSize("D:\test1\")
MsgBox
;