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.
精彩评论