Re: WinExecAndWaitV2, ok but a question:

From: Brian Cook (bcook_at_rowdydogsoftware[REMOVE)
Date: 01/23/04


Date: Fri, 23 Jan 2004 11:33:54 -0600


> 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