close

彈出視窗

1
MsgBox, " say something "

; `n 可換行文字

MsgBox , "something 1" `n "somthing 2"

 

當前檔案之路徑

1
A_ScriptDir

; 製作路徑變數

__urlPath:= A_ScriptDir .  "\" . 檔名.副檔名

 

紀錄文字進txt檔

語法

1
FileAppend, "Write something you want to say", saveURL

範例,製作成functoin

1
logToFile(__text){
  ;存檔路徑
  __urlPath:= A_ScriptDir . "\" . "log.txt"
  FileAppend , "Wirte you want to say" , %__urlPath%
}

;呼叫這個function
logToFile("this is test")

參考

https://jazzdogre.pixnet.net/blog/post/185195125?utm_source=PIXNET&utm_medium=Blog_navbar_login

https://zhuanlan.zhihu.com/p/20905979

arrow
arrow
    文章標籤
    ahk
    全站熱搜

    Aha 發表在 痞客邦 留言(0) 人氣()