Getting Idle Time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I was wondering if any one has found a way to implement an Idle Time event,
that is a callback is called after a set amount of idle time has elapsed.
I'm trying to run it on WM 5.0/.NetCF 2.0.

I looked at using a timer in conjunction with keyboard and mouse events, but
my app has a lot of controls and it is a pain to capture KeyUp and MouseUp
for all of them.

The subclassing of MessageWindow technique works only for user messages and
not OS messages.

I looked at IMessageFilter, but the PreFilterMessage method is not available
for .NETCF.

The GetLastInputInfo technique works only for Wink2K.

The only viable option seems to be using managed hooks. I'm a bit concerned
that it will take up to much resouces. Any one tried this?

Any one have any other suggestions?

Thanks!

Jack
 
Chris,

Thanks for the link! I had no idea it existed!

I am targeting Windows Mobile 5.0, which to my knowledge is the next version
after Pocket PC 2003.

You had the caveat that Pockect PC isn't supported by the MultiMedia Timer,
so it looks like I will have to implement IMessageFilter.

I will give it a try!

Thanks again!

Jack
 
Back
Top