You could use a timer and trap the Form.MouseMove and Keypress events to reset the timer.
>Hi!
>
>Is there an easy way to simulate the READ TIMEOUT (of foxpro 2.6) in VFP?
>
>I would like to run a form (Login) when no key is pressed and the mouse is not moved for more than 2 minutes.
>
>I don't think a timer will help because it would not know if a key was pressed or if the mouse was moved in the last 2 minutes.
>
>Thanks.
>
>Sarosh
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05