Page 1 of 1

Emulating the US keyboard backslash key on a Scandinavian keyboard

Posted: 15 Aug 2018, 04:08
by bjornekelund
I'm a autohotkey noob and I have an application which is designed for US keyboards in
which the backslash key has a vital function but on Scandinavian keyboards backslash
is AltGr-+ and does not work.

I would like to map another key to the equivalent of the US keyboard backslash
(preferrably the umlaut prefix key ^¨~, but e.g. one of the ÅÄÖ keys would also work)

I have a hunch this could be achieved with scan codes but I don't seem to be able to
figure out which one US backslash is and how to properly pass it to the application.

I tried a simple

sc01b::Send {\} ; Umlaut key remapped to \

Just to test but it just sends the ASCII character "\" to the application, it does not emulate the keypress.

Perhaps it's as easy as if someone with a US keyboard can hit the \ on the keyboard and tell me the correct
scan code from Key History?

Any help is appreciated.