Giter Site home page Giter Site logo

nightdream2016 / autotypeinputlanguage Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 208 KB

A KeePass v2.x plugin to auto switch input language to english when trigger auto-type.

License: MIT License

Batchfile 3.48% C# 96.52%
keepass keepass-plugin keepass2 language trigger-auto

autotypeinputlanguage's People

Contributors

nightdream2016 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

autotypeinputlanguage's Issues

我的windows10系统中是没有正常工作的

系统如下
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的插件写法
还希望再查看一下,同时非常感谢你的开源插件。

我的windows10系统中是没有正常工作的

系统如下
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→ (这里已经安装了英文和中文)默认可能会选择中文
如果可行可优化一下,谢谢

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.