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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling Aps

Status
Not open for further replies.

ogri

Programmer
Joined
Sep 26, 2000
Messages
74
Location
GB
Hi

Has anyone any experience in controlling applications which are not set up to be accessable.

We have a 3rd party application which we have no internal documentation for (it is, for all real purposes, a black box). We also have a large amount of data that needs to be typed into this application.

Just wondering if anyone has any experience of crudely controlling an external app by simulating a using clicking on controls and typing into fields? Any hints on how to do this?

All the best

Keith
 

You can enumerate through the open windows looking for this black box. The easiest way would be looking for its title. Once you have its handle you can then enumerate through its child windows (each textbox, commandbutton, etc. is a child window). You can do many things including setting the text or sending a click event.

Some of the API's that you will need are EnumWindows and SendMessage.

Good Luck
 
Hi

Thanks for that. I will see if I get landed with this task. All the fun of bought in packages

I take it the SendMessage can be used to send a click to a control exactly as though a user had clicked on the button.

Just hope that the original supplier used reasonable control names.

All the best

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top