🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #206

Re: WinExecAndWaitV2, ok but a question:

#206
From: Brian Cook
Date: Fri, 23 Jan 2004 17:33
31 lines
1831 bytes
> Hello,

Greetings.

> 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.

Probably the simplest solution is to minimize your application when the 
user clicks the button...

  Application.Minimize;

...and then restore the application when the "other program" finishes...

  Application.Restore;


Good luck, Brian
Technical Details
Message-ID: <MPG.1a7b16fd22b5d00989826@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <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 09:40:39 PST
From: Brian Cook <bcook@rowdydogsoftware[REMOVE].com>
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: WinExecAndWaitV2, ok but a question:
Date: Fri, 23 Jan 2004 11:33:54 -0600
Message-ID: <MPG.1a7b16fd22b5d00989826@newsgroups.borland.com>
References: <4010e531@newsgroups.borland.com>
Organization: Rowdy Dog Software
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 12.75.4.144
X-Trace: newsgroups.borland.com 1074879232 12.75.4.144 (23 Jan 2004 09:33:52 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail