how to control other process through vb.net
hi
i am creating one application in which i want to set one textbox's text of other application which running in system.
can anyone tell me from where i should start?
what do i need to do?
how it is possible?
i dont need a code i just want is your guidance.
pelase do help me
waiting for your reply....
thank so
Re: how to control other process through vb.net
Lookup Sendkeys and Findwindow on CG ...
There are several discutions on this subject.. to get you started have a look at this thread..
Gremmy..
Re: how to control other process through vb.net
One way to set a textbox's text in one application from the content of a textbox (or any other info) from another application is to have the first application look for a specific file with the content provided by the second application. When this file is prepared by the second application, the first can read the file and upload the textbox. Good luck.
Re: how to control other process through vb.net
both of these suggestions can work. And they can be very proffessional if you handle em properly.
If you are doing the first one, make sure you don't hardcde anything
if you use the second, i recommend XML files, unless of course you need verrrrryyy simple stuff
Re: how to control other process through vb.net
Quote:
Originally Posted by Gizmo001
One way to set a textbox's text in one application from the content of a textbox (or any other info) from another application is to have the first application look for a specific file with the content provided by the second application. When this file is prepared by the second application, the first can read the file and upload the textbox. Good luck.
hi ,thank you so much for you suggestion.i really appreciate you all.
but i am still in sea want to came out of it.
sir as you say to use file between them for communication,but i cannot do that coz i don't have control over second application .i means to say that second application is not created by me it is some other application.(eg,Firefox,yahoo messenger ,any famous application)
so what else i can do.
Re: how to control other process through vb.net
Quote:
Originally Posted by GremlinSA
Lookup
Sendkeys and
Findwindow on CG ...
There are several discutions on this subject.. to get you started
have a look at this thread..
Gremmy..
thanks for your reply.
ya i think its possible with this article.but it is going too advance there.
what i understand from that article is
1)to do anything with other application you need to have handle of that application.
after this i am stuck.i have Handel of one application .what do i do to get Handel of that button on that application???
Re: how to control other process through vb.net
I've looked a little deeper into the search results and found this thread that will help with finding the handles of child controls..
I know that somewhere on CG there are examples of this, however i cant seem to find them right now..
Re: how to control other process through vb.net
PHP Code:
sir as you say to use file between them for communication,but i cannot do that coz i don't have control over second application .i means to say that second application is not created by me it is some other application.(eg,Firefox,yahoo messenger ,any famous application)
so what else i can do.
In that case, you have to write an application to access the second application first in which you should be able to fill a textbox of the second application. Once you do that you can achieve what you want. You can do this even if the second application is a third-party web-application. For example, applications exist that can send stock symbols to yahoo-financial and retrieve current prices. Searching web-scraping software should help you in this regard. Good luck.
Re: how to control other process through vb.net
If it's a web browser, you can use any app, or even a webbrowser control, or Internet Transfer Control. You can use parameterized url's to send the same information that you would enter in the textboxes.