I'm a owner of a 60% keyboard, and such missing the arrow keys. I'm French and I use an AZERTY layout, with an AltGr key in place of the RAlt one. I would like to remap the bottom right keys a such :
RShift : Up
RCtrl : Right
RAlt (AltGr) : Left
RWin : Down
Here is the script:
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#InstallKeybdHook
#UseHook On
LControl & RAlt::Send {LEFT} ; AltGr
RWin::Send {DOWN}
RControl::Send {RIGHT}
RShift Up::Send {UP}
RAlt Up : Left
RAlt Down (hold) : AltGR
I found a block of code that do pretty much that for RShift, but i've been unable to do the same thing for AltGr:
Code: Select all
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
Code: Select all
AltGr Up::
If (B_PriorKey = "AltGr")
Send, {Left}
return
<^>!Del:: Send {AltGr Down}{Del}{AltGr Up}
Error at line 25
Line text: AltGr Up::
Error: Invalid Hotkey
The script was not reloaded, the old version will remain in effect
Can someone help me with that? Thanks!