Making forms terminate after a period of inactivity

From: Ken Denny <kdenny_at_interpath.com>
Date: 1996/11/22
Message-ID: <32960847.2C8F_at_interpath.com>#1/1


I would like my forms application to automatically terminate after some period of inactivity. I know I can use a When_Timer_Expired trigger to do this. The problem is how to reset the timer when activity occurs. I can reset the timer in a When_Mouse_Clicked trigger to reset it when the mouse is used, but I can't figure out what to do to reset the timer when the keyboard is used. I tried using a Key_Others trigger but it has two problems. First, it only works for "function" type keys, and second, the key no longers does its function. My application is such that there is almost nothing you can do without using the mouse, so having the timer reset only when the mouse clicks will work OK, but I would like to have the timer reset when the keyboard is used as well. Can anyone offer any suggestions as to the easiest way to do this.

Please e-mail as I don't regularly check this newsgroup.

Thanks
Ken Denny
kdenny_at_interpath.com
Insight Industries, Inc
RTP, NC Received on Fri Nov 22 1996 - 00:00:00 CET

Original text of this message