LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Help moving mouse with code. (http://www.linuxquestions.org/questions/programming-9/help-moving-mouse-with-code-122049/)

nonconformative 12-02-2003 03:54 PM

Help moving mouse with code.
 
How can I (which function and library) tell Xwindows where to place the mouse cursor? At the moment I'm using XSelectInput() to read the mouse position, now when a user clicks on one of the buttons, I want to move the mouse with code. Any help greatly appreciated.

LogicG8 12-02-2003 06:44 PM

Check out:
#include <X11/extensions/XTest.h>

Specifically the functions:
XTestQueryExtension
XTestGrabControl
XTestFakeButtonEvent
XTestFakeMotionEvent


All times are GMT -5. The time now is 05:21 PM.