Re: VB6 Restore Minimized Window - External Application
From: Andrew Dunn (andrewd_at_cclXXXmenzies.com)
Date: 10/05/04
- Next message: Amit Dandavate: "Re: Pass parameters to the application which is already running"
- Previous message: Olof Lagerkvist: "Re: Using the LogonUser API"
- In reply to: Tom Esh: "Re: VB6 Restore Minimized Window - External Application"
- Next in thread: Tom Esh: "Re: VB6 Restore Minimized Window - External Application"
- Reply: Tom Esh: "Re: VB6 Restore Minimized Window - External Application"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 5 Oct 2004 10:51:38 +0100
Tom
I know the EXE name of the application that I want to call. I have no method
of predicting what the form.caption will be.
I have worked around this problem for now by amending the applications that
will be called so that they write their current caption to a registry key.
My calling program now uses the EXE name to retreive the registry key and
then I can find my window handle.
Knowing the EXE name and knowing that only one copy of the EXE will be
running, given that I can identify the process, is there anyway of finding
out the caption ?
I will look at the FindPart example - though I suspect that I already have
most of the code - i.e. I can already find a partial caption.
Regards
Andrew
"Tom Esh" <tjeshGibberish@earthlink.net> wrote in message
news:nb1rl05e1ncg48sirtp3c4b0uc2dmdip5e@4ax.com...
> On Fri, 1 Oct 2004 11:57:13 +0100, "Andrew Dunn"
> <andrewd@cclXXXmenzies.com> wrote:
> >...
> >I still have a problem because the handle has to be that of the form -
i.e.
> >I am finding the handle by enumming windows, looking for the
form.caption.
> >
> >However I do not know what the caption will be !!! - I only know the
> >application that needs to be brought to the front.
>
> It's not clear exactly what you mean by "know the application". What
> do you know about the app? Exename, proc ID, part of the titlebar
> text, etc?
>
> Maybe have a look at the "FindPart" example at the same site you
> visited earlier: http://www.mvps.org/vb/index2.html
>
>
> -Tom
> MVP - Visual Basic
> (please post replies to the newsgroup)
- Next message: Amit Dandavate: "Re: Pass parameters to the application which is already running"
- Previous message: Olof Lagerkvist: "Re: Using the LogonUser API"
- In reply to: Tom Esh: "Re: VB6 Restore Minimized Window - External Application"
- Next in thread: Tom Esh: "Re: VB6 Restore Minimized Window - External Application"
- Reply: Tom Esh: "Re: VB6 Restore Minimized Window - External Application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|