1

I have created a custom layout with Microsoft Keyboard Layout Creator (MSKLC)

When I press AltGr+keyCombo, it is supposed to map to a BQN symbol. These symbols are generally related to math notation, and have high unicode values.

My problem after installing my created layout is that the keyboard combos for are not working, where:

(double struck lowercase w) - Right Alt+w
(double struck uppercase w) - Right Alt+Shift+w
(double struck lowercase x) - Right Alt+x
(double struck uppercase x) - Right Alt+Shift+x
(double struck lowercase s) - Right Alt+s
(double struck uppercase s) - Right Alt+Shift+s
(double struck lowercase g) - Right Alt+g
(double struck uppercase g) - Right Alt+Shift+g
(double struck lowercase r) - Right Alt+r

and so on. Basically, Right Alt + character should produce the respective double struck character.

The symbols display fine within the MSKLC editor(test keyboard layout option), but do not display when installed from a generated binary.

I am testing this layout on Windows 10, 64-bit, Build 19043.1110.

This is my .klc file which I made in MSKLC: Pastebin. The main goal of this keyboard layout is to create a reliable way to type BQN glyphs on windows without any extra applications, so I would appreciate if the solution was based around editing the klc file.

Razetime
  • 1,072

2 Answers2

1

Does this happen when trying to use the new shortcuts in all programs or just certain ones? Most of those keys already have shortcuts defined in Office programs. It's possible you have to do some additional modification of the .klc file, as noted in the answers here How can I restore Ctrl+<key> functionality in Microsoft Keyboard Layout Creator?

Matt B
  • 11
1

I suggest using the standard Windows keyboard layout, together with the third-party product AutoHotkey.

You could use a AutoHotkey script such as the following to map Right-Alt+w to "ww" and Right-Alt+W to "WW":

RAlt & w::
    ShiftState := GetKeyState("Shift", "P")
    If (ShiftState) {
        Send, 
    } Else {
        Send, 
    }
return

The other keys are easy to do by a slight modification of the above two lines.

Notes:

  • The .ahk file must be saved in mode UTF-8-BOM (easy to do using Notepad++)
  • The Double-Struck characters I just copied from the compart.com pages: and , which is why the script file must be in format of UTF-8 with BOM.

After installing AutoHotKey, put the script in a .ahk file and double-click it to test. You may stop the script by right-click on the green H icon in the traybar and choosing Exit. To have it run on login, place it in the Startup group at C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

Useful AutoHotkey documentation:

harrymc
  • 498,455