CapsLock Layout Switch

    Hello,
    once again accidentally pressing Capslock and typing a sentence in capital letters, I thought about disabling it for good. But I came across a topic in which the author suggested hanging something useful on the caps, for example, switching the keyboard layout.
    First of all, I remembered about PuntoSwitcher, even installed the latest version 3.0, but there are two problems: firstly, I have a home-made Russian-Ukrainian phonetic layout, and secondly, punto noticing that my second layout German simply refused to work.

    Having searched a little in Google, I did not find anything suitable for me and decided to do everything myself. Since I program mainly for the web, I did not have enough knowledge to develop ordinary applications and I remembered scripting languages. Rummaging around a bit on the forums, I found the features I needed for AutoHotkey and wrote a small script that switches the layout by Caps-, Scroll-, or NumLock, signaling the switched layout with funny lights of keyboard LEDs.
    image
    You can switch between any layouts installed in the system, a combination of LEDs is also available for customization. Unfortunately, it does not switch the layout in the Miranda - there it is necessary to press Alt-Shift in the old manner, but the bulbs will glow.
    I personally set up the inclusion of all 3 diodes for myself, now I don’t type the URL in the Russian layout (Yes, I am ashamed, but for 13 years of working with a computer I have mastered the blind typing method ), at the first glance at the keyboard it is immediately noticeable.

    I compiled the script and got the executable, unfortunately AutoHotkey crams all the libraries there and the size is ~ 200 KB, but if you already have AutoHotkey installed, you can use the script itself, which is in the kit. The program is portable, during operation it creates the ClSwitcher.ini file, in which it stores settings.

    Link to the programmer

    Script on pastebin

    Link to AutoHotkey

    I draw your attention to the fact that I wrote the program for myself and, accordingly, did not conduct any special testing, but it should work under Xp and Vista. If you wish, you can make any changes yourself, as The source script is in the archive.

    PS: Before writing this post, I decided to search on the hub and found a topic Ten small programs without which it is uncomfortable to live in which there is a link to CapsLang , which "by capslock switches the layout, by shift + capslock - the caps itself itself", also I met links to lswitch and keyla from mrShadow .

    03/19/2012 Updated links.

    Also popular now: