Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python check if caps lock is pressed

from win32api import GetKeyState
from win32con import VK_CAPITAL
if GetKeyState(VK_CAPITAL) == 1: print("Caps Lock is on")
else: print("Caps Lock is off")
 
PREVIOUS NEXT
Tagged: #Python #check #caps #lock #pressed
ADD COMMENT
Topic
Name
7+1 =