Article View: borland.public.cppbuilder.nativeapi
Article #1200Re: How can I know how long the mouse and Keyboard have no input?
From: 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"
Technical Details
Message-ID:
<1lgcg3hlbv24so4q9bj18un8qngm4u4t9o@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47062a9a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ff07effe9f7eb604 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How can I know how long the mouse and Keyboard have no input? Date: Fri, 05 Oct 2007 07:11:05 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <1lgcg3hlbv24so4q9bj18un8qngm4u4t9o@4ax.com> References: <47062a9a@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.146.19 X-Trace: newsgroups.borland.com 1191593463 67.77.146.19 (5 Oct 2007 07:11:03 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail