En Thu, 10 Dec 2009 21:58:40 -0300, N3wCr4Zy <n3wcr...@gmail.com> escribió:

how to i get Caps Lock state (on/off) on windows with win32api?

py> from win32api import GetKeyState
py> from win32con import VK_CAPITAL
py> GetKeyState(VK_CAPITAL)  # normal
0
py> GetKeyState(VK_CAPITAL)  # CAPS LOCK set
1

See http://msdn.microsoft.com/en-us/library/ms645530(VS.85).aspx

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to