I use a program that uses \ as a shortcut.
I use a French AZERTY keyboard, where the backslash can only be typed using a key combination: Alt Gr+8 (or Ctrl+Alt+8).
So I cannot activate the shortcut (unless I switch Windows to a US keyboard layout).
I thought AutoHotkey would be able to solve the issue, but remapping a key to backslash does not work as intended:
; TRY 1: using Send
*::
Send \
return
; TRY 2: simple remap
$::\
AutoHotkey actually sends the key combination Ctrl+Alt+8, so the shortcut is not triggered.
Is there any way for AutoHotkey to send the "real" \ key, while keeping my AZERTY layout in Windows?
^x::send {Ctrl down} {Alt down} 8 {Alt up} {Ctrl up}
SendEvent {LCtrl Down}{RAlt Down}8{LCtrl Up}{RAlt Up}
.