作者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/cn.aspx?n=bbs/EzHotKey/M.1446615756.A.2B1.html