按键精灵后台找色点击儿 急!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
如何用按键精灵后台找D8C5AD这个色并点击,然后如果422,336的色值为D8C5AD也点击,要求全后台的,加分!!...
如何用按键精灵后台找D8C5AD这个色并点击,然后如果422,336的色值为 D8C5AD也点击,要求全后台的,加分!!
展开
展开全部
Hwnd = Plugin.Window.MousePoint()
Do
c = Plugin.Bkgnd.GetPixelColor(Hwnd, 422, 336)
If c = "D8C5AD" Then
Call Plugin.Bkgnd.LeftClick(Hwnd, 422, 336)
Else
XY = Plugin.Bkgnd.FindColor(Hwnd, 0, 0, 2000, 2000, "D8C5AD")
ZB = InStr(XY, "|")
X = Clng(Left(XY, ZB - 1)): Y = Clng(Right(XY, Len(XY) - ZB))
Call Plugin.Bkgnd.LeftClick(Hwnd, X, Y)
End If
Loop
延迟我都没加,LZ根据实际情况和运行情况自己加就好了。
希望对您有帮助。
Do
c = Plugin.Bkgnd.GetPixelColor(Hwnd, 422, 336)
If c = "D8C5AD" Then
Call Plugin.Bkgnd.LeftClick(Hwnd, 422, 336)
Else
XY = Plugin.Bkgnd.FindColor(Hwnd, 0, 0, 2000, 2000, "D8C5AD")
ZB = InStr(XY, "|")
X = Clng(Left(XY, ZB - 1)): Y = Clng(Right(XY, Len(XY) - ZB))
Call Plugin.Bkgnd.LeftClick(Hwnd, X, Y)
End If
Loop
延迟我都没加,LZ根据实际情况和运行情况自己加就好了。
希望对您有帮助。
更多追问追答
追问
Hwnd = Plugin.Window.MousePoint()
Do
XY = Plugin.Bkgnd.FindColor(Hwnd, 0, 0, 2000, 2000, "474156")
ZB = InStr(XY, "|")
X = Clng(Left(XY, ZB - 1)): Y = Clng(Right(XY, Len(XY) - ZB))
Delay 1000
Call Plugin.Bkgnd.LeftClick(Hwnd, X, Y)
End If
Loop
好像有错误啊,怎么回事啊,麻烦你了
追答
具体什么错误?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询