Home All Groups Group Topic Archive Search About

When Did User Last Use Keyboard or Mouse (System wide)?

Author
28 May 2006 3:05 AM
eBob.com
Is there a .Net api or System api to determine when the user last used the
mouse or keyboard?  I mean system wide, not just the last keyboard or mouse
interaction with my app.

I'm aware of SetWindowsHookEx but have never used it, and given my VB.Net
skills it would be a major (but interesting) undertaking to use it from
within a VB.Net application.

Thanks,  Bob

Author
28 May 2006 8:00 PM
Herfried K. Wagner [MVP]
"eBob.com" <eBob.***@totallybogus.com> schrieb:
> Is there a .Net api or System api to determine when the user last used the
> mouse or keyboard?  I mean system wide, not just the last keyboard or
> mouse interaction with my app.

<URL:http://dotnet.mvps.org/dotnet/code/misc/#UserIdle>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>