作者ching7896 (靜)
看板EzHotKey
標題[請問] 按鍵精靈 後台..
時間Wed Nov 4 13:42:34 2015
我想用後台自動點擊我要的座標
不過都沒反應 不知道哪邊錯了...
Hwnd = 60621460
PixelColor = Plugin.Bkgnd.GetPixelColor(Hwnd, 1630, 902)
If PixelColor = "687881" Then
Call Plugin.Bkgnd.MoveTo(Hwnd, 1630, 902)
Call Plugin.Bkgnd.LeftClick(Hwnd, 1630, 902)
Delay 1000
Call Plugin.Bkgnd.MoveTo(Hwnd, 1226, 878)
Call Plugin.Bkgnd.LeftClick(Hwnd, 1226, 878)
Delay 1000
Call Plugin.Bkgnd.MoveTo(Hwnd, 1296, 874)
Call Plugin.Bkgnd.LeftClick(Hwnd, 1296, 874)
Delay 1000
Else
Call Plugin.Bkgnd.KeyPress(Esc)
Delay 2000
Call Plugin.Bkgnd.KeyPress(Esc)
Delay 2000
End If
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.46.224.109
※ 文章網址: https://webptt.com/m.aspx?n=bbs/EzHotKey/M.1446615756.A.2B1.html