Article View: borland.public.delphi.nativeapi
Article #97Re: WinExecAndWaitV2, ok but a question:
From: Mike Shkolnik
Date: Fri, 23 Jan 2004 10:25
Date: Fri, 23 Jan 2004 10:25
40 lines
2120 bytes
2120 bytes
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:
<4010f669@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4010e531@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,6b19d632dfc307ea X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2004-01-23 02:36:53 PST From: "Mike Shkolnik" <mshkolnik2002@ukr.net> Newsgroups: borland.public.delphi.nativeapi References: <4010e531@newsgroups.borland.com> Subject: Re: WinExecAndWaitV2, ok but a question: Date: Fri, 23 Jan 2004 12:25:22 +0200 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.35.183.51 Message-ID: <4010f669@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074853481 212.35.183.51 (23 Jan 2004 02:24:41 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail