Activate Unicode IME under program control on MS Windows

The Dyalog "Knowledgebase". This forum is read-only
Forum rules
The FAQ is a read-only forum which is in general updated only by employees of Dyalog Ltd. It replaces the FAQ page which existed under http://www.dyalog.com. Rather than rejecting other posts to this forum, such posts will be put in a moderation queue, and moved to a more appropriate forum.

Activate Unicode IME under program control on MS Windows

Postby Vince|Dyalog on Wed May 10, 2023 8:13 am

Activate Unicode IME under program control on MS Windows

We have a tick box in Options->Configure->Unicode Input that says "Activate selected keyboard". I have come up with this from our interpreter code for that:
      'loadkeyb'⎕NA'user32.dll|LoadKeyboardLayoutW <0T I4'

⍝ Then, for my locale of UK, I can use this to load our Unicode IME into the Dyalog process:
loadkeyb'e0990809' 259

⍝ For other keyboard layouts:

loadkeyb'e0990406' 259 ⍝ DK
loadkeyb'e0990407' 259 ⍝ DE
loadkeyb'e0990409' 259 ⍝ US
loadkeyb'e099040A' 259 ⍝ ES
loadkeyb'e099040b' 259 ⍝ FI
loadkeyb'e099040C' 259 ⍝ FR
loadkeyb'e0990410' 259 ⍝ IT
loadkeyb'e099041D' 259 ⍝ SE

⍝ To switch back to the standard English-United Kingdom layout:
loadkeyb'00000809' 259
Vince|Dyalog
 
Posts: 421
Joined: Wed Oct 01, 2008 9:39 am

Return to Frequently Asked Questions (FAQ)

Who is online

Users browsing this forum: No registered users and 1 guest