1. Win32 Help needed.

Using Win32 (59.1) , I'm having a problem with the keypad sending the wrong
keycodes.

    setHandler(Screen, w32HKeyDown, routine_id("keyDownProcess"))

I'm trapping keys with the above statement. With the numlock on the 2 key
(and down arrow when no numlock) is sending a keycode of lowercase "b". This
just so happens to launch my programs. They think it is a "B" for begin. All
the other keys on the keypad behave as I expected. I tried this on more than
one computer and they behave the same, so it's not the keyboard.

Is this my mistake using the keypad incorrectly or win32 error? If it's win32 
where in the heck do I look.

new topic     » topic index » view message » categorize

2. Re: Win32 Help needed.

On 12/6/05, George Walters <guest at rapideuphoria.com> wrote:
> posted by: George Walters <gwalters at sc.rr.com>
> Using Win32 (59.1) , I'm having a problem with the keypad sending the wro=
ng keycodes.
>
>     setHandler(Screen, w32HKeyDown, routine_id("keyDownProcess"))
>
> I'm trapping keys with the above statement. With the numlock on the 2 key
> (and down arrow when no numlock) is sending a keycode of lowercase "b". T=
his
> just so happens to launch my programs. They think it is a "B" for begin. =
All
> the other keys on the keypad behave as I expected. I tried this on more t=
han
> one computer and they behave the same, so it's not the keyboard.
>
> Is this my mistake using the keypad incorrectly or win32 error? If it's w=
in32
> where in the heck do I look.

Odd... not having a copy of win32lib handy right now, what about the
other members of params?
Can you look at (and maybe post if significant) the value of param
generated for 'b', 'B', downarrow, 2withnumlockoff, 2withnumlockon?
(Not just the number, the entire sequence)

--
MrTrick
----------

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32 Help needed.

With help, I found that the KeyDown and KeyUp do not return the ascii codes for 
characters. Each key is assigned a number (w32Keys.e) and that number is what
is returned. KeyPress returns the ascii code for the character. So the problem
was my misunderstanding of what was being returned.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu