>I'm looking for a way for my FoxPro app to detect that the user has switched to another Windows app, desktop or whatever. Also, detect when the FoxPro app becomes the active app again.
>
>I'll need to have FoxPro trigger a function in both events.
>
>Any suggestions ?
>
>- Werner
Add timer with following timer event:
declare INTEGER GetActiveWindow in Win32Api
nActivehandle=GetActiveWindow()
if nActivehandle=0
=messagebox("Something else is active")
else
=messagebox("VFP is active")
endif
clear dlls
Edward Pikman
Independent Consultant