按键精灵脚本求高人指点 前转后
Hwnd=Plugin.Window.Foreground()sRect=Plugin.Window.GetClientRect(Hwnd)MyArray=Split(s...
Hwnd = Plugin.Window.Foreground()
sRect = Plugin.Window.GetClientRect(Hwnd)
MyArray = Split(sRect, "|")
A = Clng(MyArray(0)): B = Clng(MyArray(1))
Rem x
FindColor 0,0,1024,768,"302D35",x,y
If x > 0 And y > 0 Then
Delay 200
MoveTo x, y
Delay 200
LeftClick 1
Delay 500
MoveTo 259+A, 278+B
Delay 200
LeftClick 1
Delay 1000
LeftClick 1
Delay 200
LeftClick 1
Delay 100
Goto 找色
Delay 50
End If
Rem 找色
Delay 2000
IfColor 634+A,33+B, DFFFFF,1
Delay 100
Goto x
Delay 50
End If
这个我自己转换但是发现前台的指定坐标后台点不到 -- 展开
sRect = Plugin.Window.GetClientRect(Hwnd)
MyArray = Split(sRect, "|")
A = Clng(MyArray(0)): B = Clng(MyArray(1))
Rem x
FindColor 0,0,1024,768,"302D35",x,y
If x > 0 And y > 0 Then
Delay 200
MoveTo x, y
Delay 200
LeftClick 1
Delay 500
MoveTo 259+A, 278+B
Delay 200
LeftClick 1
Delay 1000
LeftClick 1
Delay 200
LeftClick 1
Delay 100
Goto 找色
Delay 50
End If
Rem 找色
Delay 2000
IfColor 634+A,33+B, DFFFFF,1
Delay 100
Goto x
Delay 50
End If
这个我自己转换但是发现前台的指定坐标后台点不到 -- 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询