开发者

C# - Record Click Strokes into an array?

开发者 https://www.devze.com 2023-01-17 19:01 出处:网络
How can I record click strokes and then put them into an array? Also does the window always need to be in focus for it to work? How can I avoid thi开发者_开发知识库s.The requirement that this works wi

How can I record click strokes and then put them into an array? Also does the window always need to be in focus for it to work? How can I avoid thi开发者_开发知识库s.


The requirement that this works without having a focused window is the more difficult one. You need to use a low-level mouse hook with the SetWindowsHookEx() API function. This requires P/Invoke, a good example is available in this blog post.

0

精彩评论

暂无评论...
验证码 换一张
取 消