Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. is there a way to run programs with other programs?

is there a way to run programs with other programs?

Scheduled Pinned Locked Moved C / C++ / MFC
questionworkspace
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jetournier
    wrote on last edited by
    #1

    :((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

    J 1 Reply Last reply
    0
    • J jetournier

      :((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

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      Hint: FindWindow SendMessage Spy++ Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      J 1 Reply Last reply
      0
      • J jmkhael

        Hint: FindWindow SendMessage Spy++ Papa while (TRUE) Papa.WillLove ( Bebe ) ;

        J Offline
        J Offline
        jetournier
        wrote on last edited by
        #3

        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

        J 1 Reply Last reply
        0
        • J jetournier

          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

          J Offline
          J Offline
          jmkhael
          wrote on last edited by
          #4

          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 ) ;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups