Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Emmanuel
Fri, 05 Oct 2007 12:14
How can I know how long the mouse and Keyboard have no input?
Author: Emmanuel
Date: Fri, 05 Oct 2007 12:14
Date: Fri, 05 Oct 2007 12:14
1 lines
912 bytes
912 bytes
How can I know how long the mouse and Keyboard have no input?
Re: How can I know how long the mouse and Keyboard have no input?
Author: Bob Gonder
Date: Fri, 05 Oct 2007 14:11
Date: Fri, 05 Oct 2007 14:11
14 lines
1532 bytes
1532 bytes
Emmanuel wrote: >How can I know how long the mouse and Keyboard have no input? One way would be to set two hooks, one for keyboard, one for mouse, using SetWindowsHookEx(). The hooks would simply read and store the time, then pass the hook data to the default handler. When you want to know how long, just compare the current time with the last hook time. Depending on what you actually want, another method might be found by looking in the help for "Idle Triggers"
Re: How can I know how long the mouse and Keyboard have no input?
Author: Remy Lebeau (TeamB)
Date: Fri, 05 Oct 2007 17:01
Date: Fri, 05 Oct 2007 17:01
11 lines
1237 bytes
1237 bytes
"Emmanuel" <emmanuel@erphk.com> wrote in message
news:47062a9a@newsgroups.borland.com...
> How can I know how long the mouse and Keyboard have no input?
GetLastInputInfo()
https://msdn2.microsoft.com/en-us/library/ms646302.aspx
Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads