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

快捷键兼容鼠标按键 #297

Closed
wed257 opened this issue Jan 4, 2024 · 3 comments
Closed

快捷键兼容鼠标按键 #297

wed257 opened this issue Jan 4, 2024 · 3 comments

Comments

@wed257
Copy link

wed257 commented Jan 4, 2024

例如鼠标中键 鼠标侧键

@wed257 wed257 closed this as completed Jan 4, 2024
@wed257 wed257 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
@wed257 wed257 reopened this Jan 4, 2024
@wed257 wed257 changed the title 快捷键兼容鼠标安键 快捷键兼容鼠标按键 Jan 4, 2024
@hiroi-sora
Copy link
Owner

鼠标按键与键盘事件的处理流程较为不同,代码上兼容鼠标按键会比较麻烦。而且,该需求比较小众。

建议你使用外部方法实现该需求。比如鼠标宏软件或AutoHotkey脚本,将鼠标键映射为键盘按键。

比如,下列AHK脚本能用鼠标侧键1触发win+alt+C,侧键2触发win+alt+V,调用Umi-OCR的功能。将它保存为.ahk文件,用AHK打开即可使用。

XButton1::#!c
XButton2::#!v

@wed257
Copy link
Author

wed257 commented Jan 14, 2024

感谢 辛苦了

@hiroi-sora
Copy link
Owner

#402

通过这个方式也可以实现鼠标控制功能。

例:
XButton1 umi-ocr --screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants