If you're using JAWS, I'm guessing you're running Windows? If so, you might look into the PyHook module. I don't know if it hooks keystrokes before or after JAWS, but its worth a try.
Then there's also the win32api. Something like: win32api.GetAsyncKeyState(100) Again, no idea how it'll work with JAWS, but worth a try, if using Windows. On Wed, Mar 7, 2012 at 8:03 PM, Ryan Strunk <ryan.str...@gmail.com> wrote: > Hello everyone, > In creating audio-based games, I'm trying to make my programs work with > major screen readers. The problem is that the industry leader, JAWS, likes > to intercept keystrokes sent to the system. This means that if you build > arrow key use into a pygame program, JAWS gets to your arrow keys first and > processes them before Pygame can. Unfortunately, cutting out the screen > reader isn't an option, as it's used to read any game text that might be > written to the screen. > I'm curious if anyone has recommendations as to how I could have Pygame or > Python get to keyboard events before the rest of the system. I have a > friend > who was able to make this happen using C#.net, but I can't even begin to > ask > how or if it's possible to do this using Python. > Any help you all can provide would be greatly appreciated. > All the best, > Ryan > >