Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if back is pressed python

import keyboard
while true:
    try:
        if keyboard.is_pressed('s'):
            print("stop")
        elif keyboard.is_pressed('p'):
            print("pause")
    except:
        pass
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #pressed #python
ADD COMMENT
Topic
Name
1+9 =