How to make a C++ program interact with mouse clicks and X Window System application?
<p>How do I exactly make a C++ program interact with another program and interact with something I have clicked on.</p>

<p>Example: If I wanted to make an MSN auto reply program and I would have a dialog box that would ask me what I would want to type and than the program would paste that into the MSN chat box.</p>
