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.*
Use [Capslang](http://flydom.ru/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)