Re: using keys in windows

new topic     » goto parent     » topic index » view thread      » older message » newer message

Frank Collins wrote:

> Does anyone know how to use the arrow keys with win32lib
> I've tried onKeyPress, and onKeyDown but can't get it to work

onKeyPress will only return "visible" keys; you need to use onKeyDown.

Windows maps the keys a bit differently than DOS; take a look at the VK_
(virtual key) constants: VK_UP, VK_DOWN, VK_LEFT, etc.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu