The following steps will help you to achieve that...
1. Introduce form level variable nLastKeyWhen
2. Form InitEvent
ThisForm.nLastKeyWhen=SYS(2)
3. a. Insert a timer control in the form just like txtBox or editBox. Timer control will be invisible when the form is run.
b. Set the timer controls INTERVAL value to somethng less than half your idle key time value... or let it be one minute. Remeber to set this value in milliseconds.
c. In the TimerEvent put the code
IF ThisForm.nLastKeyWhen + YourIdleTime > SYS(2) &&Youridle time is the screen saver activation idle time
DO FORM myScreenSaverForm
ENDIF
4. In the KeyPressEvent of the form put the code
ThisForm.nLastKeyWhen = SYS(2)
DODEFAULT
5. Create a modal form myScreenSaverForm and set its background to 0,0,0 or to your screen saver image. In this forms GotFocusEvent... put the code ....
IF INKEY(0,"M"

<> 0
ThisForm.Release()
ENDIF
Hope this helps you.

ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com