[AHK-] [請問] 初學者的一些問題

看板EzHotKey作者 (Scott)時間14年前 (2011/11/23 01:15), 編輯推噓0(0011)
留言11則, 2人參與, 最新討論串1/1
由於電腦剛灌WIN7 按鍵精靈就開始秀斗 所以早上才剛從按鍵精靈 轉移陣地到AHK 不過現在遇到幾個小問題 (1) ImageSearch, X1, Y1, 540, 250 ,780 ,290, d:\merch.bmp if ErrorLevel < 3 click %X1% %Y1% 這是我用的找圖的指令 我想要移動到圖的正中央按左鍵 可是沒有辦法 他只能在找到圖的最左上點滑鼠左鍵 有方法能移動要點的地方嗎? 我試過 click %X1%+10 %Y1%+10 不過沒用 (2) 還有 我想請問一下 ErrorLevel 3 的意思是 誤差在3%內嗎 (3) 我想要利用formattime 去做排程 但是該怎麼接 if 例如 FormatTime, Time1, T12, Time if Time1 = { MsgBox The current 24-hour time is %Time1%. } 我不知道我的Time1 該等於什麼 以上 謝謝各位的閱讀 如果有高手會的話 也請不吝賜教 -- ※ 編輯: scott750128 來自: 111.243.144.156 (11/23 14:37)

11/23 20:41, , 1F
xpo := xpos-905
11/23 20:41, 1F

11/23 20:41, , 2F
ypo := ypos-424
11/23 20:41, 2F

11/23 20:41, , 3F
MouseMove, %xpo%, %ypo%,1
11/23 20:41, 3F

11/23 20:43, , 4F
ErrorLevel is set to 0 if the image was found in the
11/23 20:43, 4F

11/23 20:44, , 5F
specified region, 1 if it was not found, or 2 if there
11/23 20:44, 5F

11/23 20:44, , 6F
was a problem that prevented the command from
11/23 20:44, 6F

11/23 20:45, , 7F
conducting the search (such as failure to open the
11/23 20:45, 7F

11/23 20:45, , 8F
image file or a badly formatted option).
11/23 20:45, 8F

11/23 20:45, , 9F
上面查help的
11/23 20:45, 9F

11/23 20:47, , 10F
3完全不會
11/23 20:47, 10F

11/25 13:44, , 11F
太謝謝了 很好用
11/25 13:44, 11F
文章代碼(AID): #1EozYlF6 (EzHotKey)