Post by N3wCr4Zyhow 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