Make Alt Gr key on UK keyboard function as second Alt key?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
THX1138
Posts: 63
Joined: 25 Jul 2017, 00:36

Make Alt Gr key on UK keyboard function as second Alt key?

18 Oct 2017, 15:30

How do I make my Alt Gr key function as an Alt key so that if I use it in combination with others, it does what the Alt key would do (e.g. Alt + F4)? Thanks


<^>!::Send {!} is wrong
AltGr::Alt is wrong
<^>!::Send ! is wrong
<^>!::RAlt is wrong
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Make Alt Gr key on UK keyboard function as second Alt key?

18 Oct 2017, 16:09

Does RAlt::Alt work for you?
It seems to work for Alt+F4, but not for menu keys.

Anyway, I do individual RAlt keys where needed rather than a general one e.g.:

Code: Select all

RAlt & F4::
SendInput, {RAlt Up}!{F4}
return

RAlt & Left:: ;internet explorer - tab back/forward
SendInput, {RAlt Up}!{Left}
return

RAlt & Right:: ;internet explorer - tab back/forward
SendInput, {RAlt Up}!{Right}
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
THX1138
Posts: 63
Joined: 25 Jul 2017, 00:36

Re: Make Alt Gr key on UK keyboard function as second Alt key?

18 Oct 2017, 20:09

I'd like Alt Gr to do everything Alt normally does. RAlt::Alt doesn't work for me but my keyboard has Alt Gr on it; is this the same as RAlt?
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Make Alt Gr key on UK keyboard function as second Alt key?

18 Oct 2017, 20:24

My key says 'AltGr' and when I press it, AutoHotkey's key history records LControl and RAlt. I've been able to use hotkeys such as <^>!a and RAlt & a. That's the extent of my AltGr knowledge pretty much.

Code: Select all

<^>!a::
RAlt & b::
MsgBox, % A_ThisHotkey
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 239 guests