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

Need to control 3rd party application that does not support automation 1

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
Hello all,

We have a 3rd party engineering application that we need to automate (even though it does not support automation). Using file associations, I can start the application with the following code:
Code:
System.Diagnostics.Process.Start(Me.txtOutputFile.Text.Trim)
It has a menu shortcut for F10 to start the process I need to watch.

Basically, I need to do the equivalent of SendKeys to the hWnd and then monitor some child windows to determine when it has completed. Can anyone point me or get me started? Thanks in advance for any ideas and/or suggestions!
 
Use user32.dll for this. You can get the window handles, button handles, etc and you can use PostMessage function to send commands to the 3rd party program or process. Do a search on user32.dll; it has a lot of functions for automating a 3rd party application that does not have an API.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top