按键精灵,如何实现后台的鼠标操作?

2024-11-26 09:51:57
推荐回答(1个)
回答1:

Dim qa hh
Plugin qa = Window.Foreground()

Plugin hh = Window.GetClientRect(qa)
XYArray = Split(hh, "|", -1, 1)
dx = XYArray(0)
dy = XYarray(1)
这4句是得到当窗口的坐标dx,dy.
要后台操操作必须在你你的坐标-去窗口坐标才行,
才是真的屏幕坐标

Plugin Bkgnd.RightDown(hh, 200-Ux, 300-Uy)