[英]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.