I have some mappings that uses Alt key on Windows XP. While they work fine with the left Alt, they doesn't with the right Alt key.
For example, the following mapping does nothing when I press right_Alt+b, while it display a message box when left_Alt+b is pressed.
!b::MsgBox You pressed Alt+b.
I'd like to have both Alt keys to work the same way and trigger the mapping above.
The mapping below does works with right Alt key, but doesn't works with left Alt key:
<^>!b::MsgBox You pressed right Alt+b.
One workaround would be duplicate all mappings that contains the alt key, but that would significantly increase the size of some scripts. Besides, I found that in some cases it doesn't works. Further investigation showed that the right alt key has a strange behavior. In a script containing only the following mapping,
^!b::MsgBox You pressed Ctrl+Alt+b.
, the message box is displayed when right_Alt+b is pressed.
I've tried to map right Alt to left Alt,
<^>!::!
or
<^>!::Send {ALT}
, but it didn't solve the problem.