https://github.com/abakum/enru
Another global keyboard layout switch by clicking the left or right Ctrl key
https://github.com/abakum/enru
autohotkey-v2 consolewindowclass en-us ffmpeg getforegroundwindow getkeyboardlayout getwindow getwindowthreadprocessid icon keyboard-layout keyboard-shortcuts loadkeyboardlayout postmessage ru-ru setforegroundwindow shell-traywnd uvnc vs-code wm-inputlangchangerequest
Last synced: 19 days ago
JSON representation
Another global keyboard layout switch by clicking the left or right Ctrl key
- Host: GitHub
- URL: https://github.com/abakum/enru
- Owner: abakum
- Created: 2023-10-18T07:46:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-04T12:07:23.000Z (over 1 year ago)
- Last Synced: 2023-11-04T13:20:55.203Z (over 1 year ago)
- Topics: autohotkey-v2, consolewindowclass, en-us, ffmpeg, getforegroundwindow, getkeyboardlayout, getwindow, getwindowthreadprocessid, icon, keyboard-layout, keyboard-shortcuts, loadkeyboardlayout, postmessage, ru-ru, setforegroundwindow, shell-traywnd, uvnc, vs-code, wm-inputlangchangerequest
- Language: AutoHotkey
- Homepage:
- Size: 6.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EnRu
Another global keyboard layout switch by clicking the left or right `Ctrl` key
Еще один глобальный переключатель раскладки клавиатуры щелчком левой или правой клавиши `Ctrl`## Credits - благодарности:
- Rudi De Vos, Sam Liarfo, Ludovic Bocquet - for [UltraVNC](https://uvnc.com/downloads/ultravnc.html)
- Joe DF - for [AutoHotkey](https://github.com/AutoHotkey/AutoHotkey/releases)
- GA, ТС - for [FFmpeg](https://ffmpeg.org/download.html)
- Microsoft - for [VS Code](https://code.visualstudio.com/Download)## Install - установка:
- `git clone https://github.com/abakum/EnRu.git` [](https://github.com/abakum/EnRu.git)
- [download](https://github.com/AutoHotkey/AutoHotkey/releases) & install [AutoHotkey](https://github.com/AutoHotkey/AutoHotkey/releases)
- run `EnRu.ahk` or `a2e.bat`## Usage - использование:
- Press and release the left `Ctrl` key to switch the keyboard layout to `en_US`.
Нажми и отпусти левую клавишу `Ctrl` чтоб переключить раскладку клавиатуры на `en_US`.
- Press and release the right `Ctrl` key to switch the keyboard layout to `ru_Ru`, but if the [](https://uvnc.com/docs/uvnc-viewer/71-viewer-gui.html) window is active, the local keyboard layout will be `en_US`.
Нажми и отпусти правую клавишу `Ctrl` чтоб переключить раскладку клавиатуры на `ru_Ru`, но если активно окно с [](https://uvnc.com/docs/uvnc-viewer/71-viewer-gui.html) то раскладка локальной клавиатуры будет `en_US`.
- You can switch the keyboard layout with the mouse by right-clicking on the tray icon.
Можно переключить раскладку клавиатуры мышкой через правый клик на иконке в трэе.
- If you make the window with [](https://uvnc.com/docs/uvnc-viewer/71-viewer-gui.html) active then after 2 seconds or earlier, the layout of the local keyboard will switch to `en_US`.
Если сделать активным окно с [](https://uvnc.com/docs/uvnc-viewer/71-viewer-gui.html) то через 2 секунды или раньше раскладка локальной клавиатуры переключится `en_US`.
- If you switch the keyboard layout not via [](https://github.com/abakum/EnRu.git) then after 2 seconds or earlier, the icon in the tray will change accordingly.
Если переключить раскладку клавиатуры не через [](https://github.com/abakum/EnRu.git) то через 2 секунды или раньше иконка в трэе изменится соответственно.## Story of creation - история создания:
- Previously, whichever VNC-server I used, I used only [RealVNC's](https://www.realvnc.com/en/connect/download/viewer/) VNC-viewer. It would send `Alt-TAB` to the VNC-server and allow me to switch keyboard layouts if the same keyboard layout switcher was set on both VNC computers.
Раньше какой бы VNC-сервер я не использовал пользовался только VNC-вьювером от [RealVNC](https://www.realvnc.com/en/connect/download/viewer/)
Он передавал VNC-серверу `Alt-TAB` и позволял переключать раскладку клавиатур когда на обеих компьютерах с VNC стоял один и тот же переключатель раскладок клавиатур.- But in the [ngrokVNC](http://github.com/abakum/ngrokVNC) project I had to use the encryption plugin and [](https://uvnc.com/docs/uvnc-viewer/71-viewer-gui.html), which, when `ScrollLock` is enabled, can transmit `Alt-TAB` to the [UltrVNC-server](https://uvnc.com/docs/uvnc-server.html), but it was necessary to have `en_US` layout on the [](https://uvnc.com/docs/uvnc-viewer/71-viewer-gui.html) and `ru_Ru` layout on the [](https://uvnc.com/docs/uvnc-server.html) to transmit cyrillics.
Но в проекте [ngrokVNC](http://github.com/abakum/ngrokVNC) потребовалось использовать плагин шифрования и [](https://uvnc.com/docs/uvnc-viewer/71-viewer-gui.html), который при включении `ScrollLock` может передавать `Alt-TAB` на [VNC-сервер](https://uvnc.com/docs/uvnc-server.html), но для передачи кириллицы нужно чтоб на [](https://uvnc.com/docs/uvnc-viewer/71-viewer-gui.html) была расскладка `en_US` а на [](https://uvnc.com/docs/uvnc-server.html) `ru_Ru`