Getting Idle Time

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top