Home All Groups Group Topic Archive Search About

passing a value to an open application.

Author
8 May 2006 10:47 AM
Fred
Hi,

I am building an application where I want to determine if a certain
application is open and if so fill out a text box in that application.


the application I am building is VB.NET and the application I am
looking for is compiled VB6.  Can anyone point me in the right
direction?

I have written this to find the app and it does find it but where do I
go from here?

    Public Sub ListOpenApps()
        Dim prOprn As Process

        For Each prOprn In Process.GetProcesses()
            If prOprn.MainWindowTitle = "App im looking for" Then
                Console.Write(prOprn.MainWindowTitle)
            End If
        Next

    End Sub

Thanks for any help

Fred

Author
8 May 2006 2:23 PM
vbnetdev
http://www.vbaccelerator.com/home/net/code/Libraries/Windows_Messages/Simple_Interprocess_Communication/article.asp



--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com



Show quote Hide quote
"Fred" <f***@fredthomas.co.uk> wrote in message
news:1147085235.627403.168580@u72g2000cwu.googlegroups.com...
> Hi,
>
> I am building an application where I want to determine if a certain
> application is open and if so fill out a text box in that application.
>
>
> the application I am building is VB.NET and the application I am
> looking for is compiled VB6.  Can anyone point me in the right
> direction?
>
> I have written this to find the app and it does find it but where do I
> go from here?
>
>    Public Sub ListOpenApps()
>        Dim prOprn As Process
>
>        For Each prOprn In Process.GetProcesses()
>            If prOprn.MainWindowTitle = "App im looking for" Then
>                Console.Write(prOprn.MainWindowTitle)
>            End If
>        Next
>
>    End Sub
>
> Thanks for any help
>
> Fred
>