4

我在 Mac 上的 vmware fusion vm 上的 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 命令是否有问题,或者由于某种原因它在终端或 vm 中不起作用。

4

2 回答 2

4

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

于 2017-05-14T10:31:37.727 回答
0

这可能是答案编辑虚拟机目录中的 .vmx 文件并添加以下行:

vmmouse.present = "FALSE"

这可能对你有用

于 2020-08-14T10:25:45.983 回答