>>I tried to implement this timer (I used this code and not the one you sent me), but I seem to have the exact same problem as I am having with the VFP timer. When I minimize the VFP application and later maximize, the login form is not shown - e.g. it seems like the timer is not firing when the application is not active.
>
>It might be VFP -- possibly when it is minimized no code will run. Have you tried to set a breakpoint in the OnTimerInterval method? You might try sending output via SET DEBUGOUT to a file as well. My guess is that VFP is not running any code; the API would still fire since it is outside of VFP.
>
>You might have to have an outside monitor that is running in the background...
I made more changes based on this thread I found
http://www.foxite.com/archives/idle-time-of-the-application-0000343448.htmI decided for now to use regular timer. I added a check for the application being active (as in that thread). It seems to work this way - when I minimize the application, it seems to not do anything, but once I bring it back, the login form immediatelly pops up. I think it's OK enough behavior.
If it's not broken, fix it until it is.
My Blog