|
下面是我的脚本,都加了测试点测试过了,都是对的,就是鼠标后台不移动,烦请大佬指教
Call 得到窗口坐标()
Call Plugin.Window.Size(a,1848,1031)
Call Plugin.Window.Move(a, 0, 0)
//X=8,Y=31
Call 卖东西()
Sub 卖东西()
Call Plugin.Bkgnd.KeyPress(a, 48)
Delay 300
Call Plugin.Bkgnd.KeyPress(a, 57)
Delay 500
UnlockMouse
Call Plugin.Bkgnd.MoveTo(a, 154, 273)
Delay 500
Call Plugin.Bkgnd.LeftClick(a, 154, 273)
Delay 300
End Sub
Goto 开始
Rem 开始
Sub 得到窗口坐标()
a = Plugin.Window.MousePoint()
zb = Plugin.Window.GetClientRect(a)
fj = Split(zb, "|")
qx = Clng(fj(0))
qy = Clng(fj(1))
End Sub |
|