I am using two different keyboard layouts on my keyboard. I can switch between them easily by using Alt + Shift shortcut.
Is it possible in Windows 7 to hold some key to change keyboard layout temporarily?
Background: I am using English keyboard for programming. I would like to write comments with accents, and Alt-shifting to write accented letters and Alt-shifting back feels very clumsy.
This question asks the same question for Ubuntu, but I don't have any idea how to do this in Windows.
As by Dave Rook's comment, using AutoHotkey works quite well. After some encoding-related headbanging, I decided to go with this straightforward if not so pretty script (I ended up listing all the letters in the alternate layout that I wished to use):
!_X_::Send {Alt Down}{Shift Down}{Shift Up}{Alt Up}{_X_}{Alt Down}{Shift Down}{Shift Up}{Alt Up}
where _X_ corresponds to a letter on the key in the current layout.