Then don't add the timer to _SCREEN or a Form. Just define it and create it:
PUBLIC oTimer1
oTimer1 = CREAT([oTimer])
DEFINE CLASS oTimer AS TIMER
INTERVAL = 1000
PROC TIMER
IF FILE([foo.txt])
QUIT
ENDIF
ENDPROC
ENDDEFINE
Dave
>No that don't works.
>It only works if the window where my app. is running or (vfp) has the focus.
>??????
>
>thanks anyway !!