Advertisement
Catsher

Free breakfasts

Nov 28th, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.86 KB | None | 0 0
  1. import keyboard
  2. import time
  3.  
  4. while True:
  5.     if keyboard.read_key() == "ctrl":
  6.         if keyboard.read_key() == "insert":
  7.             print("You pressed ctrl + insert")
  8.             time.sleep(1)
  9.  
  10.             keyboard.write("") # Фамилия
  11.             keyboard.send("tab")
  12.             time.sleep(0.2)
  13.  
  14.             keyboard.write("") # Имя
  15.             keyboard.send("tab")
  16.             time.sleep(0.2)
  17.  
  18.             keyboard.write("") # Отчество
  19.             keyboard.send("tab")
  20.             time.sleep(0.2)
  21.  
  22.             keyboard.write("") # Академическая группа
  23.             keyboard.send("tab")
  24.             time.sleep(0.2)
  25.  
  26.             keyboard.write("") # Номер профсоюзника
  27.             keyboard.send("tab")
  28.             time.sleep(0.2)
  29.             break
  30.  
  31. # python -m venv venv
  32. # venv\Scripts\activate  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement