nightdream2016 / autotypeinputlanguage Goto Github PK
View Code? Open in Web Editor NEWA KeePass v2.x plugin to auto switch input language to english when trigger auto-type.
License: MIT License
A KeePass v2.x plugin to auto switch input language to english when trigger auto-type.
License: MIT License
是否可以考虑对新版的 keepass2
进行兼容性适配?
系统如下
OS 名称: Microsoft Windows 10 专业版
OS 版本: 10.0.19041 暂缺 Build 19041
我在已经预装了英语,同时默认为中文为首选
设置 -> 语言 -> 英语(美国)
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-language-pack-default-values
我在这上面找到的us的对应的是
United States - English | 0x00000409
但是在
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=54874&p=236131&hilit=Change+keyboard#p236131
这边找到的确实是你定义的 0x4090409
我通过python 安装了win32包
pip install pywin32
下面代码在我的windows可以正常切换为英文输入法
import win32api
import win32gui
from win32api import PostMessage
if __name__ == '__main__':
hwnd = win32gui.GetForegroundWindow()
win32api.PostMessage(hwnd, 0x0050, 0, 0x00000409)
没有搞懂为什么有两种不同的键盘布局id
由于我这边没有c#的环境也没有研究keepass的插件写法
还希望再查看一下,同时非常感谢你的开源插件。
系统如下
OS 名称: Microsoft Windows 10 专业版
OS 版本: 10.0.19041 暂缺 Build 19041
我在已经预装了英语,同时默认为中文为首选
设置 -> 语言 -> 英语(美国)
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-language-pack-default-values
我在这上面找到的us的对应的是
United States - English | 0x00000409
注册表中有这一项
计算机\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts\00000409
LayoutFile 为 KBDUS.DLL
但是在
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=54874&p=236131&hilit=Change+keyboard#p236131
这边找到的确实是你定义的 0x4090409
我通过python 安装了win32包
pip install pywin32
下面代码在我的windows可以正常切换为英文输入法
import win32api
import win32gui
if __name__ == '__main__':
hwnd = win32gui.GetForegroundWindow()
win32api.PostMessage(hwnd, 0x0050, 0, 0x00000409)
没有搞懂为什么有两种不同的键盘布局id
由于我这边没有c#的环境也没有研究keepass的插件写法
还希望再查看一下,同时非常感谢你的开源插件。
补充一点 委托同事已经编译出插件文件 但是还是有些问题
虽然大概看到 AutoType.FilterCompilePre += OnAutoType; 这里已经有实现
但有时插件没有正确切换(猜想问题出在 1.未输入kp密码,输入密码这里就切了us键盘,在web再调用可能输出中文;2.不用输入时,web上手动切换输入法,在web再调用kp亦可能出错)
我更新了windows7支援的pre版本,windows7上表现正常,windows10上关闭软件,把plugin cache删除后,再打开软件
工具→AutoTypeInputLanguage→ (这里已经安装了英文和中文)默认可能会选择中文
如果可行可优化一下,谢谢
As an future roadmap.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.