Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IS_RUN32
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00506776
Message ID:
00507218
Views:
10
>>Hej Benn,
>>
>>The problem is ActiveWindow returns 0 in some cases.
>>
>>Just went through this please see thread(s):
>>
>>Thread #500554
>>
>>Thread #502433
>>
>>My solution was to set the ActiveWindow of the app in the start up as a global
>>variable and then change is_run32 to use this instead of checking each time
>>for the ActiveWindow.
>
>Hi Tim,
>
>Thanks for your reply. I have tryed with the PUBLIC variable with no luck.
>
>I found some information on FindWindow() by Erik Moore under Windows API Functions and it works perfect.

Benn,

The problem with FindWindow() is that it requires an exact match, including case and/or the window's class name. That's the problem Is_Run32() was designed to overcome. As I mentioned in the second of the two messages mentioned above, a workaround is to launch the program using 7 (Minimized/Inactive) as the window state, then use ShowWindow() to activate the window when desired.

I haven't had an opportunity to make and test possible modifications. When I do, I'll upload the changes and post a message regarding it.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform