//功能说明:单线程执行同一地图,鼠标操作大号,小号也执行同样的(后台)鼠标操作.
Hwnd = 198094//+++++++++++++++++++++++指定小号句柄++++++++++++++++++这里需要提前获取小号句柄
//得到鼠标指向的窗口句柄
sRect = Plugin.Window.GetClientRect(Plugin.Window.MousePoint())
TracePrint sRect//调试信息
x1 = Split(sRect,"|")(0)
y1 = Split(sRect, "|")(1)
TracePrint x1//调试信息
TracePrint y1//调试信息
延时 = 1000
do
Mouse=GetLastClick()
If Mouse =32770 Or Mouse =32769 Then
TracePrint "你按下了鼠标左键"
GetCursorPos x, y
TracePrint x & "," & y
Call Plugin.Bkgnd.LeftClick(Hwnd, x - x1, y - y1)//1跟随
// Call Plugin.Bkgnd.LeftClick(Hwnd1, x - x1, y - y1)//2跟随
End If
Delay 200
loop