How to set the mouse position under X11 (linux desktop)?

≡放荡痞女 提交于 2019-11-29 07:44:30

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/

Try using xte command (part of xautomation package). Details here

If you are doing it in an xterm, the Xterm understands ANSI control codes. There is a list of these codes here.

mae

To do from a shell script, use the xwit commandline tool.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!