Low level codes for sending keys regardless of keyboard format? (QWERTY, AZERTY, etc) Python

430 views Asked by At

My question is how do I use a module like keyboard.write() or shell.sendkeys() to send keystrokes that will be recognized by ALL versions of keyboards. Is there a base level dictionary so to speak that maps every key to a code, regardless of what keyboard format you use? (QWERTY, AZERTY, QWERTZ etc) It seems that all the letter keys work through different keyboard formats, but numbers and some special keys do not. For example there is no grave key (`) on AZERTY keyboards like there is on QWERTY. You have to press " Alt Gr + รจ" to access grave key on AZERTY.... is there some base level codes for every key?

I have tried chr() which does not translate to other keyboard formats.

0

There are 0 answers