IF CheckWin('App window title') &&window title MESSAGEBOX('The app is already running',48+4096) RETURN .F. ENDIF FUNCTION CheckWin PARAMETER tcTitle * Routine which sees if an application is active by looking for its * Window title * expC1 Window title DECLARE INTEGER FindWindow in Win32API as FindWindow STRING, STRING RETURN IIF(FindWindow(0,tcTitle)>0,.T.,.F.)