1

I use a laptop with Italian keyboard, but I need the tilde ~ and the backtick ` characters, which my keyboard is not endowed with.

I got to know AutoHotKeys and it seems to fit. But I could not find a map to script. E.g., what are the key codes relative to the AltGr.

Briefly, I want to do the following:

AltGr + ' = `

AltGr + ì = ~

marked as duplicate by DavidPostill Aug 28 at 19:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

According to the docs: <^>! stands for AltGr so I do beleive you could use a script something like this:

<^>!':: ;send backtick
    SendInput, `` ; <- backtick is also the escape char, so we need to escape it first
    return

<^>!ì:: ;send backtick
    SendInput, ~
    return

I dont have AHK on my pc so couldn't try it, so you might have to tweak around a bit for it to work.

  • Thank you for your answer Paul. A last question: is this keys modification reversible? Once I run the .ahk script, is there a way to undo its effect? – Matteo Zambra Aug 28 at 20:30
  • @MatteoZambra The way I understand how autohotkey works you gonna have schedule this script to start up with windows manually, so to stop it you just need to remove the schedule, or the script file. If you need to stop the script without restarting you can just close AutoHotkey. – Paul Aug 28 at 21:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.