Skip to main content

键盘宏,可根据需要自定义多套功能键区。

Project description

快速开始

import time
from xyw_macro import *


def func1():
    time.sleep(4)
    print('func1')


def func2():
    print('func2')


macro = Macro()
config1 = Configuration('01', 'part', Configuration.FUNCTION)
config1.add_command(Condition(VK('VK_F3'), '打印'), func1)
config2 = Configuration('02', 'all', Configuration.FUNCTION)
config2.add_command(Condition(VK('VK_F2'), '打印'), func2)

macro.add_config(config1)
macro.add_config(config2)
macro.run()

Release Notes

0.0.1

  • 初次发布,实现了键盘宏的基本功能

0.0.2

  • 将GUI框架由pyqt5换为tkinter,提高兼容性
  • 新增command模块,包含部分常用键盘宏命令函数
  • 新增部分源码注释
  • 修复了部分bug

0.0.3

  • 优化了Macro类
  • 新增部分源码注释
  • command模块中新增了部分常用函数

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xyw-macro-0.0.3.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

xyw_macro-0.0.3-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page