passing a value to an open application.

F

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top