Shahnur Isgandarli
Shahnur Isgandarli

Reputation: 161

Checking if user uses mouse (move, click, scroll) or keyboard (press a key) in Windows Service application

I have learned C#, and I started to learn creating Windows Service application. I am quite new, nevertheless I try everyday spending lots of hours learning how to create Windows Service application.

My service app should check if user of computer uses mouse (move, click, scroll) or keyboard (press a key).

If user does so, the computer will do a specific action. I know how to check this conditions in Windows Forms, but implementation in Windows Service is still mystery for me.

Upvotes: 0

Views: 760

Answers (1)

hbulens
hbulens

Reputation: 1969

I'm afraid this isn't possible. There is no GUI attached to a Windows Service, so you'll have to pick up those events from your Windows Forms project. See this article for more information.

Upvotes: 2

Related Questions