开发者

C# - Record Click Strokes into an array?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜