Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 C# 并希望获取所有鼠标事件。为什么这样做最好。我试过:
SetWindowsHookEx(WH_MOUSE_LL, proc, GetModuleHandle(curModule.ModuleName), 0);
我无法使其工作,并且仅限于单个模块,我想获取所有鼠标事件。
你想做一个全局挂钩。这是一篇关于这样做的代码项目文章:http: //www.codeproject.com/KB/cs/globalhook.aspx