🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3241

Re: detecting user inactivity

#3241
From: Jeff Smartt
Date: Fri, 14 Jun 1991 05:10
21 lines
1330 bytes
In article <17190004@hpsciz.sc.hp.com> bruceh@hpsciz.sc.hp.com (Bruce Haines) writes:
>
>	Any ideas on how to sense user "inactivity".  I'd like to set a
>	timer that would go off if a user hasn't generated any keyboard/mouse
>	input. Like whatever a screen saver app must do...?

G'day,

create a DLL that used a system hook that looks for WM_CHAR, WM_SYSCHAR, and
WM_MOUSEMOVE messages to any application.  Add a timer so that you can detect
the lack of messages and that's it!  See the hooks overview in the manual.

Note that the code MUST reside in a DLL - not a standard app.

Regards,
Jeff.
-- 
Jeffrey Smartt, Smartt Designs Pty. Ltd.
G.P.O. Box 619, Sydney, NSW, Australia, 2001.
Ph: +61-2-411-1910.
--------------------------------------------------------------------------------
Technical Details
Message-ID: <1991Jun14.051010.19585@metro.ucc.su.OZ.AU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!jeff
References: <17190004@hpsciz.sc.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!jeff
From: jeff@extro.ucc.su.OZ.AU (Jeff Smartt)
Newsgroups: comp.windows.ms.programmer
Subject: Re: detecting user inactivity
Message-ID: <1991Jun14.051010.19585@metro.ucc.su.OZ.AU>
Date: 14 Jun 91 05:10:10 GMT
References: <17190004@hpsciz.sc.hp.com>
Sender: news@metro.ucc.su.OZ.AU
Organization: Uni Computing Service, Uni of Sydney, Australia
Lines: 21
Nntp-Posting-Host: extro.ucc.su.oz.au