Domanda

I have created a windows application form, it can display the opening window that user opens in real time. And I need to record the mouse movement. However, I could only record the mouse movement on windows form by using Cursor. Is there any way in C# can record the movements on desktop NOT form?

I think there may be 2 ways, but have not found the solutions yet:

  1. find a way to record the mouse movement on the whole screen, so that when users open any kind of window, their mouse movements can be recorded

  2. I'm using handle for foregroundwindow to display the info the opening window, is there any way to use handle to record the mouse movements?

Many many thanks!

È stato utile?
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top