26

Currently I am using Recaps for switching between keyboard layouts. But I am looking for a replacement, because it is a little buggy and not updated for years. Do you know any replacement?

  • 3
    Any particular OS, or will you accept an answer for Haiku? – Ignacio Vazquez-Abrams May 29 '12 at 4:51
  • 2
    Recaps is a Windows app, so it is either that or Plan 9 – Paul May 29 '12 at 4:55
  • 3
    Is it alright for Alt + Shift to still be assigned to language switching? If so, AutoHotkey could be used to send an Alt + Shift on CapsLock. – Bob May 29 '12 at 5:36
  • @Reza Your AHK code is wrong. + is the Shift modifier, it must come before {Raw} or normal keys. Try: Send, +{LAlt} – iglvzx Jun 1 '12 at 5:05
  • @iglvzx It did not work. – PHPst Jun 1 '12 at 5:11
21

Following @Bob's suggestion to use AutoHotkey, the following script will simulate Alt+Shift when you press CapsLock:

CapsLock::Send, {Alt Down}{Shift Down}{Shift Up}{Alt Up}

Windows can be a little stubborn when it comes to keyboard shortcuts only consisting of modifiers, but the above technique works.

  • Wonderful, works like a charm! Thanks for this. – Per Lundberg Jun 30 '18 at 18:19
  • What about Caps Lock for 1st layout and Shift+CapsLock for 2nd layout, any idea? – mini Mar 16 at 5:55
12

In windows you can set Windows to use Grave Accent (`) for switching between languages or keyboard layouts via a single key press.

If your windows is set to change keyboard layout by Ctrl+Shift you can use following AutoHotKey script (I strongly recommend using http://www.autohotkey.com/) to map them to Caps Lock, normal CapsLock will be achieved by Shif+CapsLock

SetCapsLockState, AlwaysOff
+CapsLock::CapsLock

CapsLock::Send, {Ctrl down}{Shift down}{Shift up}{Ctrl up}{Ctrl up}
return
  • l.autohotkey.net is down :( – turbanoff Aug 31 '15 at 15:10
  • @turbanoff Updated. – PHPst Sep 1 '15 at 6:57
  • 6
    Second {Ctrl up}? Why? – Monah Tuk Dec 15 '16 at 4:26
  • I was forced to use windows at work after a long time, and can't even imagine how easy things were in Ubuntu and how difficult these things are here on Windows. For things as trivial as a keyboard shortcut you have to install an separate program. – Muhammad bin Yusrat Jan 10 at 4:41
  • ⊙﹏⊙ I wish I had AHK in ubuntu to easily create my shortcut! – PHPst Jan 10 at 5:49
3

Punto Switcher can do this! http://punto.yandex.ru/win/

Basically it allows you to switch keyboard layout automatically, based on what you are typing. But it also can switch keyboard layouts on Caps Lock or many other keys. If don't like automatic switching you can turn it off in settings.

  • 2
    Dose it have an English version? – PHPst Oct 23 '12 at 7:50
  • 1
    Sorry, it seems that it's Russian only. Probably because it's main function is keyboard layout auto-switch (rus-en). Anyway, my answer can help Russian users. – icem Nov 3 '12 at 18:50
  • 1
    too much functional for this task in this app. – kyb Oct 2 '17 at 10:15
3

Use lswitch.

Use any key to switch input languages, usage: lswitch [keycode]. Keycode is optional and defaults to context menu key. Another good candidate is a CapsLock key with a keycode of 20.

Cheers!

2

Around a year ago I switched from ReCaps to keyla and I am pretty much happy with it.

  • Skype 7.23 hangs when switching language via Caps Lock in Windows 10. – Paul Annekov May 19 '16 at 12:11
  • Keyla site is die. – Monah Tuk Dec 15 '16 at 4:30
1

I made it using PowerPro tool (as if it is constantly loaded already for other stuff) And now I achieve language change by tapping and CAPSLOCK via long press.

0

You can easely (by changing first two lines to:

$~CapsLock::LangSwitch(1)
$~CapsLock up::LangSwitch(2)

) modify wOxxOm's Keyboard layout switcher for using Win+Space instead of right control. And it will work no matter which hotkeys are set up for switching layout in Windows (default is Alt+Shift, I'm using Ctrl+Shift).

Because of non-ahk-native switching (script uses WinAPI), whole script is rather bulky, so I didn't paste it inline. In case of autohotkey.com inaccessibility, here it is: http://pastebin.com/RayAw1VP

(again, all credits go to wOxxOm, source script is there: http://www.autohotkey.com/board/topic/24666-keyboard-layout-switcher/)

P.S. That script is quite old, and has hardcoded byte-offsets, so I'm not sure if it will work with 64-bit Autohotkey.exe or in 64-bit Windows. I only have 32-bit at hand.

P.P.S. This answer is nearly duplicate to another but questions are also nearly similar.

0

Use Capslang: simply download suitable exe and put it in folder

%AppData%\Microsoft\Windows\Start Menu\Programs\Startup

(to make it launch automatically when system starts)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.