简体   繁体   English

如何连接到Windows VM,并发送Win32命令? (蟒蛇)

[英]How can I connect to a Windows VM, and send Win32 commands? (Python)

I have a VM of Windows opened, and I'd like to able to move the cursor to a (x,y) coordinate and click, or click + sendkeys. 我打开了Windows的虚拟机,我希望能够将光标移动到(x,y)坐标并单击,或者单击+ sendkey。

so 2 questions: 所以有两个问题:

1) Best way to create a headless Windows VM with set resolution?] 1)创建具有设定分辨率的无头Windows VM的最佳方法?]

2) How can I execute code or ideally control it with a Python API from the host(Linux) machine? 2)如何从主机(Linux)机器上执行代码或理想地使用Python API控制代码?

edit: I'm trying to do this because it's a complicated GUI app that is only available in Windows, and I want to control it in the background of my machine, get results, etc. 编辑:我正在尝试执行此操作,因为它是一个复杂的GUI应用程序,仅在Windows中可用,并且我想在计算机的后台对其进行控制,获取结果等。

Let's look at http://sikuli.org/ . 让我们看一下http://sikuli.org/ I think it can be solution for you. 我认为这可以为您解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在(php / python)和C ++(Win32 / Native Windows)服务器端之间实现加密? - How can I implement encryption between server side in (php/python) and C++ (Win32/Native Windows)? 如何使用 win32 将 Python 连接到打开的 Excel 工作簿? - How to connect Python to an open Excel workbook, using win32? 在Windows中运行的Python代码,可以使用“if not win32”绕过部分内容 - Python Code running in windows, can I bypass part of it using “if not win32” Python Win32 向 Chrome 发送击键 - Python Win32 send keystrokes to Chrome 如何确定特定Win32 API调用所需的Windows库? - How can I determine the windows libraries required for a specific win32 api call? 如何在 python win32 上获取字体写字板 - How can get font wordpad whit python win32 使用Python和Win32,如何在不发送的情况下同时打开多封电子邮件? - Using Python and win32 how can I open multiple emails simultaneously without sending? 如何使用python和win32 api将彩色文本写入文本框? - How can I write color text to a textbox using python and the win32 api's? 如何使用python win32将多个行写入文本框? - How can I write multiple lines to a textbox using python win32? 如何在 Python 中使用 Win32 API? - How to use Win32 API with Python?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM