如果用WH_GETMESSAGE或者用WH_MOUSE钩子好想只能捕捉鼠标在客户区(Client)上的坐标和单击等消息,一旦鼠标移出了客户区,例如鼠标在窗口标题栏或者菜单栏还有Windows系统任务栏的时候,就不能捕捉到鼠标的任何消息了。
请问有什么办法可以捕捉到鼠标在屏幕上任意一点的坐标和单击等消息?
我现在想在整个屏幕范围内,把鼠标的所有动作记录到脚本文件,然后根据该脚本回放鼠标动作
请问有什么办法可以捕捉到鼠标在屏幕上任意一点的坐标和单击等消息?
我现在想在整个屏幕范围内,把鼠标的所有动作记录到脚本文件,然后根据该脚本回放鼠标动作
解决方案 »
- 画不规则控件的问题 急等
- 在全局函数中如何获得当前对话框工程的句柄(紧急求助)
- 学VS2005用VC++6.0的书可以吗?
- 数据读取的问题!?!
- 怎么在Static或其它控件中重载一个消息?
- 关于自定义消息的问题。
- 根据另外一个程序的对话框的标题,如何获得这个对话框的控件的内容呢?
- winsock的WSAAsyncSelect()的问题(有源码)
- 搞个调查,想知道有多少超30岁的程序员
- 小问题噢~~~如何取得系统目录的路径呢?还有,我记得有个变量可以取代系统目录的路径是“%????%”可我记不得了,如果知道,请告诉我噢。。。
- 谁有用CSocket类写的UDP接收端(服务端)的例子? 或者帮我搞定下边的错误也一样
- 请问:单文本框的“文件”——“退出“调用的函数是什么啊?
);
ParameterslpPoint
[out] Pointer to a POINT structure that receives the screen coordinates of the cursor.
Return ValueIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError.ResThe cursor position is always specified in screen coordinates and is not affected by the mapping mode of the window that contains the cursor. The calling process must have WINSTA_READATTRIBUTES access to the window station. ExampleFor an example, see Using the Keyboard to Move the Cursor.Function InformationHeader Declared in Winuser.h, include Windows.h
Import library User32.lib
Minimum operating systems Windows 95, Windows NT 3.1 See Also