Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WIN32 Transfer data between applications

Status
Not open for further replies.

klameer

Technical User
Jun 21, 2002
26
LK
Hi,
I have two applications to which I dont own the code. One has an API from which I can extract data and the other is a VB application.
What I want to know is if it is possible to automate the transfer data from the first application to the other. I.e once the data is extracted, propergate the text boxes in the VB application.
With win32 SetWindowText, I can change the window caption of another application, but I cannot access the individual text fields.
Is this possible in the first place?

Thanks and regards,

Karim
 

Yes it is possible. Look at FindWindow (Main Application), EnumChildWindows (TextBoxes of Main Application), and SendMessage (perhaps SetWindowText may work also but I have always used SendMessage).

Good Luck

 
Hi,
I have tried this, but have only succeeded in changing the title of the window, I can't change individual text boxes within it.
I have also done some coding to display the contents of text boxes but I can't moduify these contents.
Could you please help.

Regards,

Karim
 

what are the SendMessage calls that you are making? and are you sure you have the correct hwnd for the textboxes? I find that when doing this, it pays to run Spy++ to identify the controls first so then you know how to make the API calls so VB can locate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top