Text Transfer between programs
Posted on 2003-12-11
I am trying to make a simple program that will read data from anouther process and send data back, i have found several websites on sending text to anouther window in visual basic but i cant seem to find anything on doing it in C++ i assume it would be as simple (yeh right... like anything simple!) as having a method to find the window, a method to send keystrokes to it, and anouther method to read the data from a text box...
certain data about the other window is known, like the text box i want to send to is named editx (according to some window handle finding programs) and the one i want to recieve from is called RichEd32, and they are both inside a window with an unknown name (the name of their parent window changes) and that parent windows parent has a name containing a fixed name (with other changing text after its name) i think this is the information i need to find the window handle (i managed it in VB by checking the window below the cursor every 100ms untill it matched these conditions... lol)
please could someone tell me how to do this, or give me a link to a site that describes how to do this (if one exists... i couldn't find one)
thanks in advance