Question: Currently I am using [Recaps](http://www.gooli.org/blog/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?

Answer: 
Following [@Bob](https://superuser.com/questions/429930/using-capslock-to-switch-the-keyboard-language-layout#comment494242_429930)'s suggestion to use [AutoHotkey](http://autohotkey.com), 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.*
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.