Python 3.x - Getting the state of caps-lock/num-lock/scroll-lock on Windows
Question: Just as the question asks, I know this is possible
[on](http://stackoverflow.com/questions/13129804/python-how-to-get-current-
keylock-status) [Linux](http://stackoverflow.com/questions/3207032/detect-
caps-lock-in-python-curses), but I couldn't find anything recent for Windows.
Is it even possible?


Answer: Install `pywin32` for Python 3.x

Here is the example for checking capslock state.

    
    
    from win32api import GetKeyState 
    from win32con import VK_CAPITAL 
    GetKeyState(VK_CAPITAL)
    

