Thread: interacting between programs

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    16

    interacting between programs

    Ok, here is my question:

    I have one program, A which contains a Button, 1.

    now i want to beable to use program B to be alerted (or more to detect when) Button 1 is pressed, so that it may copy text out of a text field and display it on the screen.

    i looked on msdn and found the GetMessage function, but it said it only worked if the program (B) which was trying to detect the button click was of the same thread as program a.

    so is there some way to do what ive described above?

    thanks

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Use the SetWindowsHookEx() function, passing it WH_GETMESSAGE as the hook ID.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 07:32 AM
  2. Interacting with other programs
    By GanonsSpirit in forum C++ Programming
    Replies: 2
    Last Post: 08-05-2007, 05:58 PM
  3. Interacting with other programs with readline
    By Provost in forum C Programming
    Replies: 1
    Last Post: 08-13-2004, 06:24 AM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 03:12 AM