Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Sam
  Where is Sam?
 HK
 Hong Kong
 Sam
 To: Ciprian Zaharia
  Where is Ciprian Zaharia?
 Brossard
 Canada
 Ciprian Zaharia
 Tags
Subject: RE: Auto-exit idle form
Thread ID: 209678 Message ID: 209718 # Views: 4 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Tuesday, December 30, 2008 3:17:11 PM         
   


> > Hi all,
> >
> > Is it possible to exit an idle form automatically, using timer? How?
> > eg. When a user leave his seat, foxpro detects the form being idle for 1 min. and automatically exit the form.
> >
> > Thanks in advance
> >
> > SAM
>
> You can setup a property of the form let say nIdletime
>
> In form.mousemove method
>
>
Thisform.nIdletime=seconds()

>
> the timer is always active and in the timer method
>
>
If Seconds()-Thisform.nIdletime>60
> 
> thisform.release &&(or whatever exit procedure you have)
> 
> endif

>
>
> I'm using this to logout a user or for some forms to activate the screen saver.
>
>
> Ciprian Zaharia
> Fox4Ever
> http://genn.org/stuff/tastes/

Thank you,Ciprian Zaharia.


SAM

ENTIRE THREAD

Auto-exit idle form Posted by Sam @ 12/30/2008 1:04:39 PM
RE: Auto-exit idle form Posted by Stefan Wuebbe @ 12/30/2008 1:13:17 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 1:30:37 PM
RE: Auto-exit idle form Posted by Stefan Wuebbe @ 12/30/2008 3:03:50 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 3:14:58 PM
RE: Auto-exit idle form Posted by Bhushan Sahni @ 12/30/2008 1:20:39 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 1:31:22 PM
RE: Auto-exit idle form Posted by Bhushan Sahni @ 12/30/2008 1:39:22 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 3:14:28 PM
RE: Auto-exit idle form Posted by Ciprian Zaharia @ 12/30/2008 1:52:31 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 3:17:11 PM
RE: Auto-exit idle form Posted by Yousfi Benameur @ 12/30/2008 2:26:41 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 3:16:43 PM