* TmrKickOut.Timer() LHOUR=SET('HOUR') SET HOUR TO 24 IF HOUR(DATETIME())=1 .AND. MINUTE(DATETIME())=0 * 1 am for ix = 1 to _SCREEN.FORMCOUNT _SCREEN.FORMS[ix].visible = .F. ENDFOR declare long ShellExecute in "shell32.dll" long hwnd, string lpszOp, ; string lpszFile, string lpszParams, ; string lpszDir, long nShowCmd declare long GetDesktopWindow in "win32api" local hDCScreen IF !([ADMINNAMEHERE]$SYS(0)) * Skip Logout if you are Admin.. :P hDCScreen = GetDesktopWindow() this.Value = ShellExecute( hDCScreen, "Open", "F:\PUBLIC\LOGOUT.exe", "", ; "F:\PUBLIC", 1 ) ENDIF * ;p lazy quit!! ON ERROR QUIT QUIT && most likely it will give error and still quit.. ENDIF