4

I installed xdotool on ubuntu 15.10 on a vmware fusion vm on a mac. I tried running the following commands in the terminal.

>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

Is there something wrong with my mousemove command or some reason it will not work in the terminal or in a vm.

user873477
  • 87
  • 2
  • 8

2 Answers2

4

This MAY be an answer : On an host Linux Mint 17 / guest in Linux Mint 18.1, the mouse doesn't seems to move (visualy, the mouse pointer doesn't move). But if you add a "xdotool click 1", you'll see the click is on the correct mouse position.

ypicot
  • 104
  • 6
  • Tested, this on a KVM guest Ubuntu 18.04 and checked mouse position with pyautogui and the mouse was on the correct position – carlosmarti Apr 04 '20 at 00:09
  • for fedora 31 is the same issue, the mouse click works on the location that you move but the cursor is not moving, thank you for your post – al3x2ndru Jun 18 '20 at 10:35
0

This may be the answer Edit the .vmx file in virtual machine directory and add the line:

vmmouse.present = "FALSE"

This may works for you

wangdz
  • 1