求按键精灵2014版本的后台鼠标连点器源文件

2024-11-06 15:40:42
推荐回答(1个)
回答1:

代码如下

Hwnd = Plugin.Window.MousePoint()
宽高数组 = Plugin.Window.GetWindowRect(Hwnd)
MyArra = Split(宽高数组, "|", -1, 1)
GetCursorPos x, y
TracePrint "后台句柄是"&hwnd
//用前台坐标-窗口在屏幕的坐标 就是后台坐标
TracePrint "后台坐标是"&x-Myarra(0)&","&y-Myarra(1)
Call Plugin.Bkgnd.LeftClick(Hwnd, x-Myarra(0), y-Myarra(1))