passing a value to an open application.

  • Thread starter Thread starter Fred
  • Start date Start date
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
 
Back
Top