Hello, does anyone have a sample function that will automatically terminates an application if a user is not actively using the application. I need this function to automatically close the application in case a user forgets to close application at end of day so we can run of an automatic index routine. Thank you in advance for your help.
Regards,
Automatic application termination
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
I hope I can help you ....
Code: Select all
Local oOut
Local nTime:=0
Local oWnd
define window oWnd
....
DEFINE TIMER oOut INTERVAL 60000 OF oWnd ;
ACTION ( nTime ++, if ( nTime == 1,( MsgInfo( OemToAnsi("Version 1.0 ( Demostration )." + CRLF +;
"Author" + CRLF + "name_application" + CRLF +"End of demostration") ),oWnd:END()),))
ACTIVATE TIMER oOut
ACTIVATE WINDOW oWnd
Best Regards, Saludos
Falconi Silvio
Falconi Silvio