📜 ⬆️ ⬇️

Lswitchp - typographic assistant

A small assistant was discovered on the Internet, namely a program that can quickly substitute the most necessary Unicode characters, in addition, it can switch the layout, and the lucky ones with the F13 and F14 keys on the keyboard can quickly expand / collapse the active windows.

The program is very silent, and shows its existence only in the list of processes. It is from there, if desired, and it should be closed. If you want to use it all the time, then it makes sense to put it in autoload.

The list of shortcuts:
Alt + -short dash -
Alt + =long dash -
Alt + [opening quote "
Alt +]closing quote »
Alt +.dots ...
Alt +bullet •
Alt + \up arrow ↑
Alt +/(numpad) inequality ≠
Alt + *(numpad) smile ☺
Alt + +(numpad) copyright ©
F13minimize a window
F14maximize window
Caps lockswitch layout
It is strongly recommended to collect from the source (it can be freely modified to add its functionality, and this is easy):
rostislav.chutkov.net/lswitchp.cpp (3,892 bytes)
')
And for those who are lazy (and not afraid), you can immediately download the assembly:
rostislav.chutkov.net/lswitchp.exe (5,120 bytes)

Tested on Vista, WinXP SP2, SP3. However, on whist (and win7) applications pick up the Alt key and shift the focus to their own main menu. While it is treated only by pressing Escape immediately after the combination. If someone can overcome this problem, then he will be very respectful.

It is worth adding that the program is distributed under the BSD license .

Personally, I added the following shortcuts that transform Alt + 2,4,6,8 to numpad in the corresponding arrows:
DEF_ALT_CHAR_EX(0x62, 0x2193); // Arrow down
DEF_ALT_CHAR_EX(0x64, 0x2190); // Arrow left
DEF_ALT_CHAR_EX(0x66, 0x2192); // Arrow right
DEF_ALT_CHAR_EX(0x68, 0x2191); // Arrow up

UPD: Also added some minor changes.
Now Alt + numpad1 = & lt; , numpad3 = & gt ; , numpad0 = & nbsp;
And minimize and maximize the window moved to Alt + Page Up and Alt + Page Down, respectively.
The source code and the executable file can be taken here and here, respectively.

UPD 2: Screw the configuration, the truth so far only for just characters.
The source code, the configuration and the executable file can be taken here , here and here, respectively.
To change any keys on the keyboard yourself, I recommend using the list of keys and the character table (charmap).

Source: https://habr.com/ru/post/54952/


All Articles