Controlling other applications from VB.Net?

  • Thread starter Thread starter phx
  • Start date Start date
P

phx

I want to send text to another application from my vb app(i want to sent
texts to irc window, or press some buttons on that application). Does anyone
know a article about that , or give me a clue about the keywords to search
the net?
 
* "phx said:
I want to send text to another application from my vb app(i want to sent
texts to irc window, or press some buttons on that application). Does anyone
know a article about that , or give me a clue about the keywords to search
the net?

You can try to send messages to the application's window. Keywords:
'Process.GetProcesses' to find the process, the process'
'MainWindowHandle' to get a handle to the window, then you can use
p/invoke on 'FindWindowEx' to get a handle to the textbox and use
'SendMessage' to send commands to the window.
 
I will check it. thanks.

Herfried K. Wagner said:
You can try to send messages to the application's window. Keywords:
'Process.GetProcesses' to find the process, the process'
'MainWindowHandle' to get a handle to the window, then you can use
p/invoke on 'FindWindowEx' to get a handle to the textbox and use
'SendMessage' to send commands to the window.
 
Back
Top