Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
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.
|