Code Monkey home page Code Monkey logo

lhahk's Introduction

LHAHK

https://img.shields.io/badge/license-MIT-blue.svg https://img.shields.io/github/release/hakutyou/LHAHK.svg

Windows 平台下鼠标键盘监听模拟的 Python3 实现

pyHook for python3

http://www.swig.org/download.html 下载 swig.zip 后 将解压的文件夹添加到环境变量

pip install PyHook3

Package

  • PyHook3 1.6.1
  • PyQt5 5.11.3
  • pywin32 224

_pyinstall.bat

需要安装 pyinstall,编译为 exe 文件

run_as_admin.reg

修改 python.exe 路径后运行,增加 .py 文件右键管理员运行选项

simulator/mode

所有 Hotkey 操作设定,默认为 normal 模式

Hotkey 格式

['A']

仅当按下 A 时触发,如果 setting.MACSTrue ,则无视所有功能键(例如 Lshift A 也会触发)

如果一直保持 A 为按下状态,会连续触发

['LshiftA', 'A']

仅当按下 Lshift, A 时触发,如果 setting.MACSTrue ,则永远不会触发

如果一直保持 Lshift, A 为按下状态,会连续触发

#['A']

仅当按下 A 时触发,如果 setting.MACSTrue ,则无视所有功能键(例如 Lshift A 也会触发)

即使一直保持 A 为按下状态,也只会触发一次

#['LshiftA', 'A']

仅当按下 Lshift, A 时触发,如果 setting.MACSTrue ,则永远不会触发

即使一直保持 Lshift, A 为按下状态,也只会触发一次

*A

只要按下 A 就会触发

如果一直保持 A 为按下状态,会连续触发

0000['A']

如果 setting.MACS 不为 True ,则永远不会触发,如果 setting.MACSTrue 则仅当按下 A 并未按下功能键时触发

0002*A

如果 setting.MACS 不为 True ,则永远不会触发,如果 setting.MACSTrue 则在 Lshift 按住时,只要按下 A 就会触发

注意

在连续输入时,可能会有非功能键同时按下例如 [‘S’, ‘A’] 的情况,此时 [‘A’] 会无法触发

lhahk's People

Contributors

hakutyou avatar

Stargazers

郭洁 avatar

Watchers

 avatar

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.