[请问] 按键精灵 后台..

楼主: ching7896 (靜)   2015-11-04 13:42:34
我想用后台自动点击我要的座标
不过都没反应 不知道哪边错了...
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

Links booklink

Contact Us: admin [ a t ] ucptt.com