🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16890

Re: How to trigger on enter idle state.

#16890
From: Chris
Date: Sat, 19 Apr 2003 10:25
21 lines
1650 bytes
---- Original Message -----
From: "Gary Setter" <setterg@worldnet.att.net>
Newsgroups: borland.public.cppbuilder.nativeapi

> Has anyone out there been thinking about how to trigger on the entering
the
> idle state? Does windows post WM_ENTERIDLE at the right time? Is there a
> better way to trigger on enter idle state?

Not sure if this is a way you would want to do it but I simply do this

in header
void __fastcall MyIdleHandler(TObject *Sender, bool &Done);

in constructor
Application->OnIdle = MyIdleHandler;

Works great for me.

Chris
Technical Details
Message-ID: <3ea12411$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3e9ff495@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,299952604d3f7245
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-19 03:42:21 PST
From: "Chris" <chris@chrischfmouseyREMOVE.karoo.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e9ff495@newsgroups.borland.com>
Subject: Re: How to trigger on enter idle state.
Date: Sat, 19 Apr 2003 11:25:24 +0100
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 212.50.172.154
Message-ID: <3ea12411$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050747921 212.50.172.154 (19 Apr 2003 03:25:21 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail