如何在X11(Linux桌面)下设置鼠标位置? [英] How to set the mouse position under X11 (linux desktop)?
本文介绍了如何在X11(Linux桌面)下设置鼠标位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何在X11下设置鼠标光标的位置?有没有可能,如果必须在哪里寻找合适的功能? X视窗系统,KDE/Gnome/...?
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/...?
推荐答案
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.
(您可以使用ls /usr/share/man/man3/ | grep '^X'
快速而肮脏地列出X函数)
(You can get a quick and dirty list of X functions using ls /usr/share/man/man3/ | grep '^X'
)
这篇关于如何在X11(Linux桌面)下设置鼠标位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文