Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API.SystemParametersInfo(API.SPI_SETDEFAULTINPUTLANG returning false #6

Open
glmnet opened this issue Jul 12, 2017 · 1 comment
Open

Comments

@glmnet
Copy link
Contributor

glmnet commented Jul 12, 2017

In my system, Windows 10, this is not working. I have two Spanish layouts and one English. I don't know if this is the cause. I got Assertion fail in SetDefaultLayout and GetLastError returns 5.
I managed to get it working by sending the hkl value received from API.GetKeyboardLayoutList instead of the one "generated" like this IntPtr hkl = new IntPtr(unchecked((int)((uint)layout << 16 | (uint)layout))); and then it kind of works.
I had made several changes to this to work but then the save config.txt needs more work so I'm not PRing this, I might do it later or branch it

@mnivet
Copy link

mnivet commented May 27, 2020

If your still interested I've done a proper fix of all that here:
https://github.com/mnivet/RightKeyboard/releases/tag/1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants