Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm bilingual user and while writing I use mostly UK keyboard I have this layout set into my computer. However occasionally I want to write something in my native tongue and the math symbols are additional bonus.

On X11 I use combination of xmodmap and XCompose. I'd like to add following bindings to UK mapping:

  • AltGr+letter - letter as if I had polish keyboard set up (say AltGr+a should send ą to program). I tried to do it in various ways but it result in errors. Please note that they are very near beginning of space (ą have unicode code 261).
  • Menu+(sequence) - various predefined symbols which would mirror the XCompose. They are added bonus. For example Menu+(i-n)(- represents release and then press) gives ∈ (this is just an example from my XCompose configuration). I consider it added bonus however.

How should I translate it into AutoHotKey script?

share|improve this question

I´m no AHK expert but I use the script below to add Spanish characters to the AltGR offerings on my EeePC

^!n:: send ñ
^!+n:: send Ñ
^!c:: send ç
^!+n:: send Ç
^!+?:: send ¿
^!+!:: send ¡

Hope you can modify that to suit your requirement. Save it as a text file with .ahk and add it to startup so it´s always available

share|improve this answer
For line ^!a:: send ą it displays "Ä…" – Maciej Piechotka Jan 11 '12 at 22:51
Sorry that did not work for you. Maybe the autohotkey user forum will be able to help. – BrianA Jan 17 '12 at 19:18
You have to make sure that the script file is encoded in UTF-8 instead of ANSI. – Synetech Jul 20 '12 at 2:19

To send, for example, a unicode space interspersed with other characters:

Send {U+0020}A{U+0020}B{U+0020}C{U+0020}D{U+0020}.{U+0020}.{U+0020}.{U+0020}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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