473,386 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Controlling other applications from VB.Net?

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?
Nov 20 '05 #1
2 4079
* "phx" <hd****@yahoo.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
phx
I will check it. thanks.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OX**************@TK2MSFTNGP11.phx.gbl...
* "phx" <hd****@yahoo.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Seda Ozulku | last post by:
I don't have much information about .Net. May be it must be a silly question. I have Windows Application running at the server. I need to Access the program functions ( like at given time...
8
by: Andrey Mosienko | last post by:
We are using PostgreSQL about two years beginning from version 7.0. I have one question about starting postmaster: Is there way to detach it from the controlling terminal under FreeBSD? My...
0
by: RWC | last post by:
Hi! I'm having some trouble controlling how the XP Packaging Wizard installs my applications. In 97, there were options to replace older, never or always, if there was a file conflict. Now...
1
by: Sibi | last post by:
Hello all, i have a question concerning :control applications from my app. Especially setting Text in txtforms. Like lets say i have Winword or Notepad open, and i want to write Text in those...
4
by: Greg Linwood | last post by:
We're building applications which we intend on delivering via our website - basically apps that our clients can download, install etc. We'd like to control download via a registration process, so...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
7
by: unacoder | last post by:
Is it possible to request the user's permission to be able to control IE or FireFox windows that are pointed to domains other than the base domain the script is running from? For example, if my...
1
by: derrick.signup | last post by:
Hello all; I apologize for being slightly off topic, but I have great respect for the knowledge in this group. I am about to begin developing a .NET application where reliability (i.e.,...
1
by: Matt Adamson | last post by:
Guys, We have an issue where we need to control access to specific web pages e.g. if one user is editing a purchase requisition another user shouldn't be able to perform any actions on it. I...
3
by: nep23 | last post by:
Hi, I'm currently working on a project and one of the features is to be able to control the print jobs send to the printer from other applications (eg MS Words). There must be some form of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.