is there a way to run programs with other programs?
-
:((Hello, I have two programs that I have to use one after another. The first one's goal is to configure data you use with the second. So I have to leave the first to use the second. And if I want to change the configuration, I have to quit the second to return in the first one, change the configuration. Then I can quit the configuration program and come back in the second program. So this is very fastidious because I always have to do the same thing twice (I always have to change the configuration once, and this is always the same thing) I don't have the source code so I cannot modify it :(( So my question is (finally...) is there a way to do a program that runs other programs and that modifies comboboxes and stuff the way a REAL user could do it?... Thank you in advance If someone did not understand what I meant please tell me too an allarc'h zo bet
-
:((Hello, I have two programs that I have to use one after another. The first one's goal is to configure data you use with the second. So I have to leave the first to use the second. And if I want to change the configuration, I have to quit the second to return in the first one, change the configuration. Then I can quit the configuration program and come back in the second program. So this is very fastidious because I always have to do the same thing twice (I always have to change the configuration once, and this is always the same thing) I don't have the source code so I cannot modify it :(( So my question is (finally...) is there a way to do a program that runs other programs and that modifies comboboxes and stuff the way a REAL user could do it?... Thank you in advance If someone did not understand what I meant please tell me too an allarc'h zo bet
-
thanks but: findwindow and sendmessage can't work (I think) as I can't access the source code of the program I want to run(I want to run it with a program but the way a user could run it, and modify comboboxes choices, click on button...). I'm not familiar with Spy++: I just made a few search on google as you recommended it, but it seems to show the threads that are running on the PC, the UC occupation and all this stuff so I don't understand the link with my question, could you precise your hint? Thanks
-
thanks but: findwindow and sendmessage can't work (I think) as I can't access the source code of the program I want to run(I want to run it with a program but the way a user could run it, and modify comboboxes choices, click on button...). I'm not familiar with Spy++: I just made a few search on google as you recommended it, but it seems to show the threads that are running on the PC, the UC occupation and all this stuff so I don't understand the link with my question, could you precise your hint? Thanks
You dont need source code. Using Spy++ you can get the class of the window u want to send message to and the messages to send, using FindWindow you cant get a handle to the window, and using SendMessage you just send the message you saw in Spy ++ to the window, thus making it behave just like if a user is testing it Consider also using CWnd::Attach and CWnd::Detach Papa while (TRUE) Papa.WillLove ( Bebe ) ;