-1
I am trying to make a piece of a code that it keeps clicking to the side automatically (with automation) and I want when I click certain key it stops working. I do not know what I put in "IF" to stop it from working, I do not know how I can say "if I click such thing stop working with the break". Please rent some help...
import pyautogui
import time
pyautogui.keyDown("alt")
pyautogui.press(["tab"])
pyautogui.keyUp("alt")
while True:
pyautogui.press(["left"])
if
break