I remember I asked for com-automation piece for that and remember talking to some of our com-dll-ppl but don't remember did they provide me an interface for that (sadly, was too dwelled with work-related-stress)

anyway, basically it's not possible but with compiled proggies, yet once it's available via dll, it is doable.
as can't remember where that dll thing stopped, I have to say you can't do such thing.

basically, all you need is to query from OS for the kb and mice idle-time.
_________________________
!

download KiXnet