发布网友
共1个回答
热心网友
85\178,是你需要点击的坐标还是窗口的左上角坐标?
Plugin hw=Window.MousePoint()
Plugin text=Window.GetText(hw)
Plugin class1=Window.GetClass(hw)
VBSCall GetCursorPos(x,y)
Plugin win=BGKM5.ScrToCli(hw,x,y)
Plugin shuru=Window.GetKeyFocusWnd()
Plugin qiantai=Window.Foreground()
MsgBox "鼠标所在窗口句柄:"&CStr(hw)&VbCrLf&"键盘焦点所在句柄:" &CStr(shuru)&VbCrLf&"当前前台窗口句柄:"&CStr(qiantai)&VbCrLf&"窗口名:"&text&VbCrLf&"类名:"&class1&VbCrLf&"鼠标所在位置的窗口坐标:"&win