Articles → Pyautogui → keyup and keydown function in pyautogui

keyup and keydown function in pyautogui






Purpose







Example
















import pyautogui
import time

pyautogui.keyDown("ctrl")
time.sleep(1)
pyautogui.keyDown("shift")
time.sleep(1)
pyautogui.press("n")
time.sleep(4)
pyautogui.keyUp("ctrl")
time.sleep(1)
pyautogui.keyUp("shift")





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, May 29, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250