Everage C++ Enjoyer
-
Автор темы
- #1
Нужно сделать чтобы при повторном нажатии caps lock программа останавливалсь и при еще одном повторном нажатии запускалась заново
Я в пайтоне вообще не ебу че да как
Я в пайтоне вообще не ебу че да как
Python:
import pyautogui as pygui
import time
import keyboard as key
x = 1007
num = 1007
while True:
if key.is_pressed('9'):
print('EXIT AND CLOSE PROGRAMM')
break
if key.is_pressed('capslock'):
while x > 7:
key.press_and_release("shift+enter")
time.sleep(0.3)
x = x - 7
num = str(f"{x}-7")
pygui.write(str(num))
time.sleep(0.05)
key.press_and_release('enter')
time.sleep(0.05)