I dont know if this is possible.
But is there a way to control another program.
Ex:
lets so i run a program programmitacaly.
Then i want to use one of its features lets say update.
is there a way to do this?
Printable View
I dont know if this is possible.
But is there a way to control another program.
Ex:
lets so i run a program programmitacaly.
Then i want to use one of its features lets say update.
is there a way to do this?
One solution is messages. Spawn the process and keep a copy of its handle.
Kuphryn
WHAT?
What he means, is use messages to control the other program
You can send messages to another program using sendmessage or postmessage, and handle those messages in the prgram that you want to control
To start the program use the CreateProcss function.
Lokk at the following link for a tutorial on messages
http://www.codeproject.com/dialog/messagehandling.asp
ok i now know how to run and close another program.
Let's say there is a button on the other program.
How can i send a message to that program to click that button?
does anyone know how to do that?
Immortal,
look at this link
http://www.codeproject.com/dialog/#Message+Handling
The easist solution is to send a WM_COMMAND message with a BN_CLICKED notification code to the dialog or other window that has the button. You should be able to find previous answers in this forum with samples of doing that. I know I have posted a sample at least once.Quote:
Originally posted by immortal20
ok i now know how to run and close another program.
Let's say there is a button on the other program.
How can i send a message to that program to click that button?