I am trying to detect user activity by "keyboard and mouse" on any program in Windows.
I detect Keyboard activity and mouse click by GetAsyncKeyState() in user32.Dll".
I detect Mouse Movement by System.Windows.Forms.Cursor.Position;
I am searching to find a way for detecting mouse wheel scrolling on any program in windows and any position on screen.
I know it possible by user32.Dll function like GetMessage().
I am never use widows form control event like MouseWheel Event, Because it work only on current program, not at all.
thanks.
https://coderedirect.com/questions/511479/mouse-wheel-event-to-work-with-hovered-control https://gist.github.com/HamzaAnis/90d53662a1659be9d2c74f1dc490cb88 https://learn.microsoft.com/en-gb/windows/win32/api/winuser/ns-winuser-msllhookstruct?redirectedfrom=MSDN helpful links
good question
if this helps below is a class that has most of the mouse hooks so you can pick and choose make an to use it you have to assign the standard click