>Hi All > >Is there any way to know if (a) my VFP application is the foremost active window and (b) whether the screen saver is running i.e. my app is not currently the active output window? > >TIA > >Jos
Jos,
does this work for you
&& if not in vfp7SETLIBRARYTOHOME()+"\foxtools.fll"&& If FoxTools is in the Home directory.&& end !vfp7declareinteger GetForegroundWindow in Win32API
HasFocus = (mainhwnd() == GetForegroundWindow())