I'm wondering how to set the mouse cursor position under X11? Is it possible at all and if, where do I have to look for appropriate functions? X window system, KDE/Gnome/...?
相关问题
- X11 forwarding affects Java Swing GUI dropdowns -
- Capture (trap) the mouse cursor in a window in Jav
- Windows IME: custom Korean virtual keyboard
- X11 non-clipped child windows
- WM_MOUSELEAVE not being generated when left mouse
相关文章
- Windows: send Mouse/Keyboard event to background w
- Moving mouse to stop monitor from sleeping [duplic
- Tracking XWindow Protocol
- How do I map an X11 keysym to a Unicode character?
- Sending Keystrokes to a X Window
- Desktop integrated application (desktop widget lik
- How can I change the position of the mouse cursor
- With X11, how can I get the user's time “away
Try using xte command (part of xautomation package). Details here
To do from a shell script, use the xwit commandline tool.
Sounds like you're using X, so what you probably want is
XWarpPointer
. To give an absolute position on the whole screen, use the Root Window as dest window.(You can get a quick and dirty list of X functions using
ls /usr/share/man/man3/ | grep '^X'
)I know the question is old, but I just discovered xdotool and it seems great:
http://www.semicomplete.com/projects/xdotool/
If you are doing it in an xterm, the Xterm understands ANSI control codes. There is a list of these codes here.