OneDeadKey / kalamine

Keyboard Layout Maker
MIT License
103 stars 29 forks source link

[klc] C driver generation #111

Closed fabi1cazenave closed 6 months ago

fabi1cazenave commented 6 months ago

As mentioned in our KLC page, MSKLC has significant limitations — and many of them are related to the UI, not to the core program (kbdutools.exe). That’s the case for chained dead keys and AltGr+Spacebar combinations, for instance.

As far as I understand, the easiest way to work around this would be to generate a DLL directly with kbdutools and use MSKLC only to create a signed installer package.

It even looks like MSKLC can be automated somehow — kudos to @wismill for this one :

$destination="C:\the\destination\dir"
$klc_file="C:\some\klc\file.klc"
[System.Environment]::SetEnvironmentVariable("USERPROFILE", "$destination")
New-Item -Path "$destination" -ItemType Directory -Name "Documents"
& 'C:\Program Files (x86)\Microsoft Keyboard Layout Creator 1.4\MSKLC.exe' "$klc_file" -build
Geobert commented 6 months ago

I’m taking care of that