Could you guys help me with this please
I want Alt Gr to work as a hotkey like this:
LControl & RAlt::MsgBox You pressed AltGr itself.
But I also want Alt Gr plus another hotkey to work like this:
<^>!m::MsgBox You pressed AltGr+m.
Each of these syntaxes works fine on their own but if I type both of them into my auto hotkey file and press run. Only the "LControl & RAlt::MsgBox You pressed AltGr itself." works
why?
Is there any way to work around this?
I appreciate all help!
How to make Alt Gr into a hot key and also as a modifier?
Re: How to make Alt Gr into a hot key and also as a modifier?
Hallo,
try:
try:
Code: Select all
~<^RAlt::
KeyWait, RAlt
IF A_ThisHotkey = ~<^RAlt
MsgBox You pressed AltGr itself.
Return
<^>!m::MsgBox You pressed AltGr+m.
Re: How to make Alt Gr into a hot key and also as a modifier?
Code: Select all
LControl & RAlt:: AltGr := true
LControl & RAlt Up::
If (A_PriorKey = "RAlt")
MsgBox You pressed AltGr itself
AltGr := false
return
#If (AltGr)
m:: MsgBox You pressed AltGr+m.
m & n:: MsgBox You pressed AltGr+m+n.
#If
Re: How to make Alt Gr into a hot key and also as a modifier?
It worked perfectly! Thanks alotRohwedder wrote:Hallo,
try:Code: Select all
~<^RAlt:: KeyWait, RAlt IF A_ThisHotkey = ~<^RAlt MsgBox You pressed AltGr itself. Return <^>!m::MsgBox You pressed AltGr+m.
Also big thanks to you GEV for the help
Who is online
Users browsing this forum: No registered users and 242 guests