Re: Calling procedure on another software

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Robert (robert_at_jcle_____.com)
Date: 05/13/04


Date: Thu, 13 May 2004 11:32:37 -0400

I'm using VB 6, not VB Net...

"Robert" <robert@jcle_____.com> wrote in message
news:K%Loc.28025$dr1.771631@news20.bellglobal.com...
> Hi,
>
> I'm trying to find a way to make a software react when an instance is
> already running.
> Here what i want:
>
> Execute a software called Test1.
> Execute this software again.
> The second instance should send a message to the first instance.
> Then, the second instance stop executing.
>
> I put this code in the Form_Load procedure:
> If app.PrevInstance Then
> SaveTitle = app.title
> app.title = "... duplicate instance."
> Me.Caption = "... duplicate instance."
> AppActivate SaveTitle
> ''''' Right here, i need to execute app.PrevInstance.SomeProcedure
> End
> End If
>
> Someone know how to run the procedure on the first instance?
>
> It will really help me, and i greatly appreciate your help.
>
> Thanks,
>
> Robert
>
>



Relevant Pages

  • Re: Calling procedure on another software
    ... >> I'm trying to find a way to make a software react when an instance is ... >> Execute this software again. ... >> The second instance should send a message to the first instance. ...
    (microsoft.public.vb.winapi)
  • Re: Calling procedure on another software
    ... >> I'm trying to find a way to make a software react when an instance is ... >> Execute this software again. ... >> The second instance should send a message to the first instance. ...
    (microsoft.public.vb.general.discussion)
  • Calling procedure on another software
    ... Execute a software called Test1. ... The second instance should send a message to the first instance. ... AppActivate SaveTitle ...
    (microsoft.public.vb.winapi)
  • Calling procedure on another software
    ... Execute a software called Test1. ... The second instance should send a message to the first instance. ... AppActivate SaveTitle ...
    (microsoft.public.vb.general.discussion)
  • Re: Calling procedure on another software
    ... findwindow api, use findwindowex api to find a textbox on that ... > Execute a software called Test1. ... > The second instance should send a message to the first instance. ... > AppActivate SaveTitle ...
    (microsoft.public.vb.general.discussion)