how to capture mouse movement and click in windows service
-
:(( it doesn't work setwindowsHookEx(), Getkeystate() and GetCursorPos(). please help me.
-
:(( it doesn't work setwindowsHookEx(), Getkeystate() and GetCursorPos(). please help me.
-
:(( it doesn't work setwindowsHookEx(), Getkeystate() and GetCursorPos(). please help me.
Windows services don't run in the context of a user's desktop. At any point whilst the service is running, there could be zero, one, or many users logged in to the computer, each with their own desktop. You need to use a different solution. For example, you can use the Windows Task Scheduler to start an application when any user logs in. That application will have access to the user's desktop.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer