Git Product home page Git Product logo

kmclassdll's Introduction

kmclassdll

kmclass 虚拟键鼠驱动的动态库

编译

建议使用Visual Studio 2019进行编译, 如何编译可参考 编译dll并在python中使用ctypes调用

python 示例

示例文件为 python_examples.py

  1. 自行编译或下载

  2. 修改变量路径为你的真实路径

    • dll_path
    • driver_path
dll_path = 'YourPath\\kmclassdll.dll'
driver_path = b'YourPath\\kmclass.sys'
  1. 开启 测试模式 & 禁用强制驱动签名 模式 & 重启

管理员身份打开CMD

bcdedit /set nointegritychecks on
bcdedit /set testsigning on
shutdown  -r -t 0
  1. 重启后管理员身份运行
python python_examples.py

kmclassdll's People

Contributors

bestburning avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kmclassdll's Issues

driver = CDLL(dll_path) 报错:找不到文件

driver = CDLL(dll_path)
报错:
FileNotFoundError: Could not find module 'D:\kmclass\kmclassdll.dll' (or one of its dependencies). Try using the full path with constructor syntax.

已经用 os.path.exists() 验证过路径是正确的。 python版本是3.10.2
请问 kmclassdll.dll 是否有依赖其它DLL文件? 是否运行python 3.10

without running test mode!

Can it be used without running test mode in Windows?
I know this is a kind of user protection
But what if I intend to release a version for an ordinary user. Commercial version

OSError: [WinError 126] 找不到指定的模块

Traceback (most recent call last):
File "C:/Users/Delevin/PycharmProjects/Python-Projects/screen_click/test.py", line 221, in
load_driver()
File "C:/Users/Delevin/PycharmProjects/Python-Projects/screen_click/test.py", line 210, in load_driver
driver = CDLL(dll_path)
File "C:\Users\Delevin\AppData\Local\Programs\Python\Python37\lib\ctypes_init_.py", line 356, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.