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

Find button on external App...??

Status
Not open for further replies.

incognico

Programmer
Joined
Dec 10, 2001
Messages
4
Location
AU
I wish to query an application from my VB program to find out if a specific command button is present (The buttons vary with the state of the application). I can get the HWnd of the relevant application, but now I cannot seem to figure out how to detect if the button is there.

Does anyone have some code that would allow me to do this..? I have found some examples of clicking buttons in external apps, but only for VB3... and they do not seem to port very well :|

Any suggestions appreciated.
 
Use the FindWindowEx api to look for the button if you know the text that will be on it. For more info on FindWindowEx goto (not my site) :-)
 
Thanks for that - worked perfectly :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top