Hi all,
I am wondering if there is a way to not just catch keypresses (I can
do that) but to do it before any other program, and then to not pass
the keypress along, so no other program sees it. I want to do this
because a program I am writing is intended for users of screen reading
software. The problem is that many keystrokes mean different things to
screen readers, and I do not want to give a reader a keystroke that it
will try to handle. For example, the Jaws for Windows screen reader
considers ctrl-down to be the "read next paragraph aloud" keystroke.
If it cannot find a paragraph, which it will not in my program, it
says "blank", or reads any text it can find. I want to use ctrl-down
as a hotkey in the program, but the user's screen reader should NOT
see that keystroke at all and so I can avoid annoying repetitions of
the word "blank". I hope this makes sense.
You will have to use native platform code to do things like that, wx does not provide a way to hook in to the system event queues before the events are delivered to the other applications.
···
On 5/22/10 2:48 PM, Alex Hall wrote:
Hi all,
I am wondering if there is a way to not just catch keypresses (I can
do that) but to do it before any other program, and then to not pass
the keypress along, so no other program sees it. I want to do this
because a program I am writing is intended for users of screen reading
software. The problem is that many keystrokes mean different things to
screen readers, and I do not want to give a reader a keystroke that it
will try to handle. For example, the Jaws for Windows screen reader
considers ctrl-down to be the "read next paragraph aloud" keystroke.
If it cannot find a paragraph, which it will not in my program, it
says "blank", or reads any text it can find. I want to use ctrl-down
as a hotkey in the program, but the user's screen reader should NOT
see that keystroke at all and so I can avoid annoying repetitions of
the word "blank". I hope this makes sense.