windows - How to globally map AltGr key to Alt key? -


i want altgr key behave left alt.
usually, kind of stuff autohotkey, i'm open different solutions.

i tried this:

lcontrol & ralt::alt 

and autohotkey displayed error alt not being recognized action.
tried following code:

lcontrol & ralt::   send {alt down}   keywait lctrl   keywait ralt   send {alt up} return 

which sort of works - i'm able use altgr key accessing hotkeys, still behaves differently:
when press , release left alt, first menu item in current program receives focus.
pressing , releasing altgr script nothing.

any ideas? possible autohotkey? (remapping right ctrl , shift left siblings piece of cake)


note: tried switching alt lalt in code , made no difference.

thank answers. unable solve using autohotkey -- phillho's answer close, needed exatly same behaviour left alt key.

however, registry thing worked needed.

save altgr_to_leftalt.reg file , run it:

windows registry editor version 5.00  [hkey_local_machine\system\currentcontrolset\control\keyboard layout] "scancode map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,38,00,38,e0,00,00,00,00 

or, there gui tool -- it's called sharpkeys , works peachy:
sharpkeys in action

oh, , don't forget reboot or log off -- won't work until then!


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -