keyboard and system inavtivity

  • Thread starter Thread starter Pohihihi
  • Start date Start date
P

Pohihihi

Hello NG,

I want to find if there is any user input (via mouse and keyboard only) even
my app do not have focus (minimized or in background). How can I do that in
managed code?

Thx,
Po
 
Unfortunately there isn't an easy way to do this that works across different
versions of Windows.
Most applications adopt a global keyboard and mouse hook, which can monitor
activity and set a flag accordingly.

Global hooks in .net aren't as easy as they could be... luckily there's some
free code to help you out:
http://www.codeproject.com/csharp/GlobalSystemHook.asp
 
Back
Top