Caps lock status

Hi Robin,

About the Capl Lock status you wrote:

You can get EVT_KEY_DOWN/_UP events for them, but I
don't think there is a way to get their current status. It

may be possible to do though, please enter a feature request

about it.

I informed the wx-dev lists and I got the following answer:

On Windows you could use GetKeyState or GetAsyncKeyState
with one of the Keycodes WXK_... (see the help) but I have
no idea about the other ports.
by O. Wyss

Problem:
GetKeyState or GetAsyncKeyState are not members of
wxPython or I did not find them.

Any idea?
Thanks
Jean-Michel Fauth, Switzerland

Jean-Michel Fauth wrote:

Hi Robin,

About the Capl Lock status you wrote:

You can get EVT_KEY_DOWN/_UP events for them, but I
don't think there is a way to get their current status. It

may be possible to do though, please enter a feature request

about it.

I informed the wx-dev lists and I got the following answer:

On Windows you could use GetKeyState or GetAsyncKeyState
with one of the Keycodes WXK_... (see the help) but I have
no idea about the other ports.
by O. Wyss

Problem:
GetKeyState or GetAsyncKeyState are not members of
wxPython

Nope, they are win32 API functions, so you may be able to find them in one of the win32all modules.

Unless somebody has time to do it within a day or two just sending a message to wx-dev is likely to get lost. So to make a feature request for a cross platform solution to this add an item to the list here: wxWidgets download | SourceForge.net

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!