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.