Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

现在网游基本不适用 #302

Open
MarinX87 opened this issue Sep 6, 2024 · 1 comment
Open

现在网游基本不适用 #302

MarinX87 opened this issue Sep 6, 2024 · 1 comment
Labels

Comments

@MarinX87
Copy link

MarinX87 commented Sep 6, 2024

Python使用的库自身无法进行低层次输入模拟。
研究了3小时C语言写键盘Hook,直接将事件发送给想要自动化的软件。也没有成功
有了解现在网游的阻止模拟输入的方法的可以联系下我,想学习

@Monomux
Copy link
Collaborator

Monomux commented Sep 7, 2024

目前windows下常用的python模拟键鼠库(pynput, keyboard, mouse, pywin32)都是通过微软的系统api模拟输入,一些游戏或是为了提高输入效率或是防物理外挂,会屏蔽系统api级别的输入。比如使用DirectX接口(DirectInput)的游戏,读取设备输入时会绕过windows的消息机制而直接和键盘驱动交互,导致模拟的软件失效。
也不是没有处理的办法...比如实现驱动级别的模拟,但是很折腾。对于这款软件的开发而言,就不对游戏做专门适配了。如果你敢兴趣,可以了解一下相关的内容,我在github上就看到有一些标注驱动级模拟输入的项目。

@Monomux Monomux added the wontfix label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants