Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to wait for completion of shellexec ?
Message
From
10/01/2003 16:34:44
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00739175
Message ID:
00740507
Views:
28
>>>Hi Herman,
>>>
>>>It's interesting that you've delved so deeply into this, and still the general case seems to be too difficult to handle with generic code. That strengthens the argument for making the compromise of adding some intelligence about the specific application that one is launching. For example you can easily get past a misleading splash screen if you know the window class name that you're waiting for in launching that particular application.
>>>
>>>Mike
>>
>>Hi Mike,
>>Thanks for the comment :)
>>
>>Yes, I'm agree with you. Eventhough maybe we can solve most of the problem with generic code, But it's just going to be more dirty and dirtier. At some point maybe we could crash the apps or even the system, I'm not sure about it. So looking from the situation, I prefer to code in a clean way.
>>
>>If you check for the class name it will get confuse because many apps had the same class. For example VFP7, from the first time we launch VFP, it already has more than 2 hwnd with the same class (VFP77400000). Which one is the right one. I mean besides the parent. And also like you said it only works *if* we know what is the class name.
>>Actually, if it is only the splash screen we could pass this. Just check for the application name (exe) using the hwnd. But it also works only *if* it is only one apps at one time. Well..I'm not sure :)
>>
>>Regards
>
>Herman,
>
>I think you understood me, but just to be clear, I used the window class name only as an example. For some applications, a known value of the main window class name would do the trick, for others, you'd need some other identifying characteristic, e.g. a pattern match on the window title. In general, I'm saying that with the help of such meta-information about specific applications or categories of applications to be launched, it may (in most cases) be possible to get a handle on the target without too much trickery. Another thing would be to know the preferred way of launching each app, when there are multiple alternatives, e.g. knowing when CreateObject/GetObject is available. If the target app is VFP-based, and if one has control over its design, this should be the best possible scenario.
>
>Mike


Mike,

If I understand you correctly. Do you mean that we already have all (most) of the information before hand ? And if the apps has the control, does it mean that we have a limitation ?
Please correct me if I'm wrong
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform