Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching between Windows apps
Message
From
28/10/1998 15:32:57
 
 
To
28/10/1998 15:25:45
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00151887
Message ID:
00151897
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform