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.*
Around a year ago I switched from ReCaps to [keyla](http://code.google.com/p/keyla/) and I am pretty much happy with it.