xdotool鼠标移动在Ubuntu VMware虚拟机上无法工作

4

我在Mac上的VMware Fusion虚拟机中安装了Ubuntu 15.10,并安装了xdotool。 我尝试在终端中运行以下命令。

>xdotool
returns the list of commands.

>xdotool mousemove 200 200 
does not move the mouse, it should move it.

>xdotool type hello 
does work and types hello

我的mousemove命令有问题吗?或者在终端或虚拟机中无法工作的原因是什么。


我在我的运行在VMware上的Kubuntu 16.04上完全遇到了同样的问题。有任何发现吗? - user1278890
2个回答

4

这可能是一个答案: 在Linux Mint 17的主机上/ Linux Mint 18.1的客户端中,鼠标似乎无法移动(在视觉上,鼠标指针不会移动)。但是,如果添加“xdotool click 1”,你将看到单击位于正确的鼠标位置。


已测试在KVM虚拟机上的Ubuntu 18.04上,并使用pyautogui检查了鼠标位置,鼠标位置正确。 - carlosmarti
对于 Fedora 31,存在相同的问题,鼠标点击在移动的位置有效,但光标不会移动。感谢您的帖子。 - al3x2ndru
在Debian 11上测试,使用Mate 1.24.1 - @carlosmarti是对的 - 鼠标没有移动,但位置改变了,并且点击发生在正确的位置上。 - undefined

0
这可能是答案。在虚拟机目录中编辑.vmx文件并添加以下行:
vmmouse.present = "FALSE"

这可能适合你


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接