我做了个按键精灵后台脚本 但问题是运行后 老是自动切回 脚本控制的窗口 还有 貌似最小化窗口后 脚步停了 20
Hwnd=Plugin.Window.MousePoint()Delay2000CallPlugin.Bkgnd.LeftClick(Hwnd,476,211)For50...
Hwnd = Plugin.Window.MousePoint()
Delay 2000
Call Plugin.Bkgnd.LeftClick(Hwnd, 476, 211)
For 50
Delay 2000
Call Plugin.Bkgnd.LeftClick(Hwnd, 350, 470)
Delay 5000
Rem 找色
GetColor1 = Plugin.Bkgnd.GetPixelColor(Hwnd, 509, 245)
GetColor2 = Plugin.Bkgnd.GetPixelColor(Hwnd, 536, 246)
Delay 2000
If GetColor1 = "2FC9BB" and GetColor2= "4CDDCC" Then
Call Plugin.Bkgnd.LeftClick(Hwnd, 494, 241)
Else
Goto 找色
End If
Next 展开
Delay 2000
Call Plugin.Bkgnd.LeftClick(Hwnd, 476, 211)
For 50
Delay 2000
Call Plugin.Bkgnd.LeftClick(Hwnd, 350, 470)
Delay 5000
Rem 找色
GetColor1 = Plugin.Bkgnd.GetPixelColor(Hwnd, 509, 245)
GetColor2 = Plugin.Bkgnd.GetPixelColor(Hwnd, 536, 246)
Delay 2000
If GetColor1 = "2FC9BB" and GetColor2= "4CDDCC" Then
Call Plugin.Bkgnd.LeftClick(Hwnd, 494, 241)
Else
Goto 找色
End If
Next 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询