Scan codes
- Posted by Brent Hugh <bhugh at GRIFFON.MWSC.EDU> Jun 21, 2000
- 497 views
Hi all, I'm using win32lib 0.45q and trying to use the top line of the computer keyboard as a "response keyboard". I am using keys "qwertyui" and mapping those to the musical notes CDEFGABC. So naturally, I want this row on the keyboard to always come out CDEFGABC no matter what keyboard layout is selected under windows. I thought I had licked this problem by using "onKeyDown" which supposedly returns "scan codes" as opposed to key codes. However, I discover that when I engage the German (standard) keyboard layout (which, as compared to English (US), exchanges the Y and Z keys of the keyboard), my program breaks. Now I would want qwertzui to equal CDEFGABC, but it doesn't. Any bright ideas? Anyone know how to penetrate the tricky windoze remapping business to get closer to the physical layout of the keyboard, regardless of windows remappings? Any help greatly appreciated! --Brent ++++++++++++ Brent Hugh / bhugh at griffon.mwsc.edu ++++++++++++++ + Missouri Western St College Dept of Music, St. Joseph, MO + + Piano Home Page: http://www.mwsc.edu/~bhugh + + Internet Piano Concert: http://www.mwsc.edu/~bhugh/recit + ++++ Classical Piano MP3s: http://www.mp3.com/brent_d_hugh ++++