-
March 5th, 2004, 08:08 PM
#1
controling another program
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?
-
March 5th, 2004, 09:51 PM
#2
One solution is messages. Spawn the process and keep a copy of its handle.
Kuphryn
-
March 6th, 2004, 01:04 AM
#3
-
March 6th, 2004, 03:13 AM
#4
...
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
1. Search in MSDN
2. Search in Google
3. Search in CodeGuru.com
4. Ask in the forum
ABNM.....asih b*&6 nahi mardeh
-
March 6th, 2004, 09:47 AM
#5
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?
-
March 6th, 2004, 12:01 PM
#6
does anyone know how to do that?
-
March 6th, 2004, 01:38 PM
#7
...
1. Search in MSDN
2. Search in Google
3. Search in CodeGuru.com
4. Ask in the forum
ABNM.....asih b*&6 nahi mardeh
-
March 6th, 2004, 06:49 PM
#8
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?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|