Windows Application Handles
Hello everyone - I just began learning Win32 API programming and I want to be able to write scripts to other programs that are currently running on my system. So here are my questions:
1) Does C++ have a scripting language to do this?
2) How can I find the handles of other windows running on my system and integrate them into my application that I am running to manipulate that program?
3) Once I find the handle of the window how can I send text or commands to that program?
I just have finished with the creation of a basic Window so - for the reasons of why I want this information - my program involves some of these factors so for future reference it would greatly help me do what I need to do - TY
If you can answer any of my questions please send your responses to my screenname at [email protected] thanks!
Re: Windows Application Handles
Quote:
Originally posted by Unregistered
1) Does C++ have a scripting language to do this?
C++ has no such scripting........You can use COM interfaces exposed by the program you are trying to control....but that depends on the program and what it offers...and its a fairly difficult thing to do in C++
Quote:
Originally posted by Unregistered
2) How can I find the handles of other windows running on my system and integrate them into my application that I am running to manipulate that program?
Depends on what you are trying to find.....if its a window, then FindWindow()...itf its a control, FindWindowEx()
Quote:
Originally posted by Unregistered
3) Once I find the handle of the window how can I send text or commands to that program?
You can send messages to indows with SendMessage()
Before trying any of this stuff, take more time to inderstand the framework......otherwise you will have difficulty getting far