borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Showing VB Form Normal Size)Next Topic (Trapping Wheel Mouse Roll Event) New Topic New Poll Post Reply
AndreaVB Forum : API : putting text in textbox of .exe program
Poster Message
shazde
Level: Trainee

Registered: 21-03-2005
Posts: 1

icon putting text in textbox of .exe program

hi
i want to now how can i put some text into a textbox on the exe application which is run in windowa (its not my program can be any program for example winzip ) .
i think it should be with api but how ? any link suggestionss ? thanx you .

21-03-2005 at 10:32 PM
View Profile Send Email to User Show All Posts | Quote Reply
omidk
Level: Protégé

Registered: 19-03-2005
Posts: 6
icon Re: putting text in textbox of .exe program

u can not do this with api functions
u need knowing assembly .
u have to use some special programs that show the code in hexadecimal numbers then some special part of those hexadecimal number has to be changed then u can change the text of for example the title bar of an .exe form.

23-03-2005 at 12:15 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: putting text in textbox of .exe program

The forms caption would be an easy thing to do with API"s, however, the problem here is how to get a handle of the textbox you want to put text in it. Its been a while since I was researching in this area, and now I dont have VB6 with me at the moment, but oyu could things like: getting a handle of form where textbox resides. then enumerating through child windows, perhaps checking their text property, see if it matches with textbox text and if it does, replace it. I cant tell if this is what need to be done, and is  all that needs to be done, but could be a good start... API's that I can thinkg of at the moment...

GetClassName, FindWindow, FindWindowEx, GetWindow, GetWindowText, SendMessage....

____________________________
If you find the answer helpful, please mark this topic as solved.

23-03-2005 at 04:36 PM
View Profile Send Email to User Show All Posts | Quote Reply
omidk
Level: Protégé

Registered: 19-03-2005
Posts: 6
icon Re: putting text in textbox of .exe program

sorry.because i misunderstood the question last time.
the problem is here that we can not get the handle of a textbox in the internet explorer window but if it is another program that we can get its handle (u can test this by using windowfrompoint function and see if it sends back the handle or not) then first with findwinodw function retrieve the window handle with findwindowex retrieve the textbox handle and with getwindowtext or sendmessage retrieve the text in textboxes or with setwindowtext put text in textbox.
u know in windows api when we talk about window it means every thing including textbox,button or other things.
i will try to write the code and put it here.

27-03-2005 at 07:51 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : putting text in textbox of .exe program
Previous Topic (Showing VB Form Normal Size)Next Topic (Trapping Wheel Mouse Roll Event) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder