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!

finding program task ID for an application

Status
Not open for further replies.

grossd

Programmer
Jan 15, 2003
1
CA
Hello,

In a VB macro when running a new application via the Shell command a program task ID is returned, which can in turn be used to activate the application and send keys to it.

1. Is it possible to find the program task ID of an already running application?

2. Is it possible to capture the contents of a control of another application via some windows API calls, when a user would click on that control.
 
1. use the findwindow api then the GetWindowThreadProcessId api - refer Q242308 from MS

2. I would start with spy++ to get the handle of the control & take it from there

take a look at this should help


Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top