Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to wait for completion of shellexec ?
Message
From
10/01/2003 04:04:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/01/2003 15:34:10
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00739175
Message ID:
00740198
Views:
28
>Yes. But since you already have the handle to the window you can add another check whether the handle still valid or not. If not then you can leave the loop in WFSO
>
>Btw, did I misunderstand for the question on WScript ? Did you mean that WScript is just a wrapper to API ? If that's what you mean then yes you're right. It also using CreateProcess.

That's my main problem. Not at all times you can get 'correct' window handle (what happened to me is that some apps put a toplevel window on start - maybe a splash one- then it goes away after some time and real app window comes up). If I could it's simple to wait checking IsWindow(hwnd).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform