GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 678LIAHUA/key2click: Key2Click:把全局键盘热键映射为指定屏幕坐标点击的轻量 Windows 键鼠映射器。

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
click_point.spec
click_point.spec
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 
使用说明.txt
使用说明.txt
 
 

Repository files navigation

Key2Click logo

Key2Click

Windows 键鼠映射器:按下键盘热键,点击屏幕指定位置

轻量、直观、开箱即用的 Keyboard-to-Mouse Mapper

Windows 10/11 Python 3.10+ MIT License Latest release

Key2Click preview

下载安装

前往 Releases 下载 Key2Click-Windows-v1.0.0.zip,解压后双击 Key2Click.exe 即可运行,无需安装 Python。

为什么选择 Key2Click

  • 可视化定位:拖动屏幕气泡,点击位置一目了然
  • 多点映射:创建多个点击点,每个点绑定独立热键
  • 全局热键:支持字母、数字、方向键、F1-F12 和组合键
  • 光标保持:触发点击后自动恢复鼠标原位置
  • 灵活控制:点击点可独立启用、停用、锁定或删除
  • 参数可调:自由设置气泡透明度和鼠标按压时长
  • 自动保存:位置、热键和偏好设置关闭后自动保留
  • 原生输入:使用 Windows SendInput,无需额外键鼠驱动

适用场景

  • 给模拟器或桌面软件补充键盘点击映射
  • 将难以触达的界面按钮绑定到顺手的热键
  • 演示、直播或控制面板中的固定位置快捷操作
  • 需要减少鼠标移动的辅助操作场景

界面预览

Key2Click application screenshot

使用方法

  1. 点击底部的“添加点击点”。
  2. 将紫色定位气泡拖到目标位置。
  3. 点击“设置热键”,按下按键或组合键。
  4. 按下热键,在对应位置模拟鼠标左键点击。

所有设置会自动保存到程序目录下的 config.json。

从源码运行

git clone https://github.com/678LIAHUA/key2click.git
cd key2click
python -m pip install -r requirements.txt
python main.py

仅支持 Windows 10/11。

打包

pyinstaller --noconfirm click_point.spec

生成的程序位于 dist/Key2Click.exe。

技术实现

  • CustomTkinter 构建桌面界面
  • ctypes 调用 Windows API
  • GetAsyncKeyState 轮询全局热键
  • SendInput 模拟鼠标按下与抬起
  • 透明置顶窗口显示可拖动点击点

开源与贡献

项目采用 MIT License。任何人都可以克隆、Fork、学习和修改本项目;官方 main 分支受保护,外部改动请通过 Pull Request 提交。详见 CONTRIBUTING.md。

注意事项

  • 目标程序以管理员身份运行时,Key2Click 也需要使用管理员身份启动。
  • 部分游戏或安全软件会拦截系统模拟输入。
  • config.json 含本机点击坐标和热键设置,默认不会提交到 Git。

About

Key2Click:把全局键盘热键映射为指定屏幕坐标点击的轻量 Windows 键鼠映射器。

Topics

automationcustomtkinterdesktop-apphotkeykey-mappingkeyboard-mappermousemouse-clickpythonwindows

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.