|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
passing a value to an open application.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
http://www.vbaccelerator.com/home/net/code/Libraries/Windows_Messages/Simple_Interprocess_Communication/article.asp
--
Show quote
Hide quote
Get a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "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 > |
|||||||||||||||||||||||