Alt Gr mapping

Get help with using AutoHotkey and its commands and hotkeys
millaNNNN
Posts: 2
Joined: 10 Jul 2020, 03:54

Alt Gr mapping

10 Jul 2020, 03:57

Hi, I'd like to remap my Alt Gr so that when pressed alone it acts like left arrow, however, when pressed in combination with another key, it behaves normally. Ex: Alt Gr + ò = @

thank you in advance, sorry I'm very noob to programming
Rohwedder
Posts: 3269
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Alt Gr mapping

10 Jul 2020, 11:42

Hallo,
perhaps:

Code: Select all

~<^RAlt Up::Send,% A_PriorKey = "RAlt"?"{Left}":
millaNNNN
Posts: 2
Joined: 10 Jul 2020, 03:54

Re: Alt Gr mapping

10 Jul 2020, 20:19

Rohwedder wrote:
10 Jul 2020, 11:42
Hallo,
perhaps:

Code: Select all

~<^RAlt Up::Send,% A_PriorKey = "RAlt"?"{Left}":
you are a saver dude!

this is the complete code that I use for my ducky one 2 mini now for anyone who might be interested!

Code: Select all

~<^RAlt Up::Send,% A_PriorKey = "RAlt"?"{Left}":
RWin::Send {DOWN}
RControl::Send {RIGHT}
RShift Up::
    If (A_PriorKey = "RShift") ;  If RShift was pressed alone
   	 Send, {Up} ; up arrow
return
>+Del:: Send {Shift Down}{Del}{Shift Up} ; >+ means RShift

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, badda, Bing [Bot], Epialis, frankr, Google [Bot], Metrium, Smile_, todd_k, WeThotUWasAToad and 56 guests