Article View: borland.public.delphi.nativeapi
Article #98Re: WinExecAndWaitV2, ok but a question:
From: Pierre Marie
Date: Fri, 23 Jan 2004 10:37
Date: Fri, 23 Jan 2004 10:37
64 lines
2764 bytes
2764 bytes
Thanks for your msg, but i do not think we understand each other.
I have 2 applications.
The first one starts the second one. There is no pb to start and wait
for the end of the second app to end.
The pb is: as the second app is very long to start, if the user click again
inside the first one while the second is starting, then the focused app
becomes the first app, the second app stays in the background and he can not
go inside.
"Mike Shkolnik" <mshkolnik2002@ukr.net> a οΏ½crit dans le message de
news:4010f669@newsgroups.borland.com...
> Just declare some boolean variable (IsStarted: Boolean) and initialize
this
> variable in True when you started the WinExecAndWait32V2 .
> So all what you'll need is to check this IsStarted variable before start
and
> to set IsStarted=False when app will finished
>
> --
> With best regards, Mike Shkolnik
> EMail: mshkolnik@scalabium.com
> http://www.scalabium.com
>
> "Pierre Marie" <pm@nst.fr> wrote in message:
> news:4010e531@newsgroups.borland.com...
> > Hello,
> > I have a pb, i use a WinExecAndWait32V2 Function to start an other app
> from
> > delphi Prg.
> >
> > The pb is that the app is a very big one, and is quite slow to start.
The
> > End user start it by pressing a btn with his finger on the screen.
> >
> > As the app is quite long to start, if he touch the screen a second
time,
> > then the window is focused and the started app never comes on the
> > frontground.
> >
> > I am quite new with api, so if there is a solution, thanks for
explaining
> > it.
> >
> > I have tried to use the ForceForeGround fn, but the createProcess does
not
> > retreive the window handle, so i do not know the wnd handle.
> >
> > Thanks
> >
> > --
> > Courtoisement
> >
> > Pierre-Marie PETIT
> > pm@nst.fr
> > 03 20 06 63 94
> >
> >
>
>
Technical Details
Message-ID:
<4010f97b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4010e531@newsgroups.borland.com> <4010f669@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f94dd,6b19d632dfc307ea X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2004-01-23 02:39:27 PST From: "Pierre Marie" <pm@nst.fr> Newsgroups: borland.public.delphi.nativeapi References: <4010e531@newsgroups.borland.com> <4010f669@newsgroups.borland.com> Subject: Re: WinExecAndWaitV2, ok but a question: Date: Fri, 23 Jan 2004 11:37:59 +0100 Lines: 66 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 193.251.72.70 Message-ID: <4010f97b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074854267 193.251.72.70 (23 Jan 2004 02:37:47 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail