Python Forum
Python automation: Sending clicks/keys to VMware virtual machine from host
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python automation: Sending clicks/keys to VMware virtual machine from host
#1
Hello,
I have a Windows 10 host machine running VMware Workstation with a virtual machine (VM) inside it. I run a game inside the VMware VM, and I want to perform simple visual recognition, mouse clicks, and keyboard actions inside the VM from my Windows 10 host using Python. However, I have tried popular Python libraries like pyautogui, pynput, keyboard, and mouse, but mouse movements and clicks do not get passed into the VMware VM.

Is there a reliable way to send mouse clicks and keyboard input into the VMware VM from a Python script running externally on the host machine?

Thanks in advance.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I am sending messages using Python to Telegram, but I need to use WhatsApp for it Hendrikb 0 309 Apr-29-2025, 09:38 AM
Last Post: Hendrikb
  Python use of virtual environments bre67e49 4 953 Feb-19-2025, 04:01 AM
Last Post: Sece1967
  I cannot create a virtual environment on visual studio code using python Willem_Aucamp316 2 4,291 Nov-27-2024, 02:20 PM
Last Post: menator01
  Sending a text from Python sawtooth500 2 1,354 Apr-14-2024, 01:56 PM
Last Post: sawtooth500
  Best practice on using virtual environments in Python bytecrunch 6 18,548 Feb-14-2024, 03:22 PM
Last Post: snippsat
  Virtual Env changing mysql connection string in python Fredesetes 0 1,062 Dec-20-2023, 04:06 PM
Last Post: Fredesetes
  Automation of GUI by python function dghosal 4 2,085 Aug-18-2023, 10:23 AM
Last Post: dghosal
  Installing python packages in a virtual environment Led_Zeppelin 1 1,737 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Method works as expected on host machine but not on server gradlon93 4 2,132 Jan-05-2023, 10:41 AM
Last Post: DeaD_EyE
  home automation using python barryjo 1 2,049 Jul-24-2022, 09:09 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020