-
Notifications
You must be signed in to change notification settings - Fork 14
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
ioHub key logging module is not unicode compliant on Windows #8
Comments
I'm not sure about /replace/ with a unicode version. The idea would be to know what key (by name) is pressed and also which character it represents. e.g. I could be presssing 'e' but using modifiers that give it an accent - some users want the key and others want the character. |
The 'intention', which may not be fully working yet, is that both are given. The goal, I believe, is to still make the primary purpose of this type of So with that goal in mind, this is what some of the relevant fields of each
I've learned a lot about this stuff over the last 1/2 week, and why it has I also figured out how to actually display a unicode character properly in Anyhow, that was a bit of a dump, but it was good to get it down in Let me know if you see any issues, etc. On Tue, Apr 9, 2013 at 8:13 AM, Jon Peirce notifications@github.com wrote:
|
Honestly, I haven't got time to read that amount of text properly! But On 09/04/2013 15:31, Sol Simpson wrote:
Jonathan Peirce |
I also just realized you were pickin up n the bug in github. I need to I had read that pyHook as not unicode compliment because it used the A On Tue, Apr 9, 2013 at 8:13 AM, Jon Peirce notifications@github.com wrote:
|
I have looked at the pyhook code and I do not think there is an issue. pyHook does not 'give' you unicode characters, but using the information is does give, it should be possible to get them ourselves. The keycode and scancode should be valid and can be used in a call to the ToUnicode function. The 'twist' is that since we are getting the events from a LL hook in a separate process, we can not use the GetKeyboardState() function to get the keyboard state that is also passed into the ToUnicode call. Each thread has a different keyboard state array in windows, and there is no 'standard way' for one process to get another processes keyboard state array. SO the plan is to create and maintain a keyboard state array that is compatible with what needs to be handed to the ToUnicode function. |
Unicode can be addressed later if needed. It is something that people Jon On 14/04/2013 17:05, Sol Simpson wrote:
Jonathan Peirce |
Currently, only language sets / keyboards that work with the ascii character set will work with ioHub. Need to replace the module being used on Windows for keyboard event hooking with a unicode version (or patch existing module source to it uses Unicode version of Windows functions).
The text was updated successfully, but these errors were encountered: