import keyboard
import pyautogui
import time
#length 1550b
#height 730
#input("Start")
time.sleep(3)
#input("test")
#pyautogui.locateCenterOnScreen('PlayButton.png')
#time.wait(30)
#input("Done")
"""
def quitout():
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
"""
startX
while True:
#Stage 1
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.keyDown('b')
pyautogui.scroll(1)
pyautogui.keyUp('b')
#Stage 2
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.click(1550,730)
time.sleep(7)
#Stage 2.5
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.keyDown('b')
pyautogui.scroll(1)
pyautogui.keyUp('b')
#Stage 3
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.keyDown('f')
time.sleep(5)
pyautogui.keyUp('f')
#Stage 3.5
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.keyDown('b')
pyautogui.scroll(1)
pyautogui.keyUp('b')
#Stage 4.5
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.keyDown('s')
time.sleep(1)
pyautogui.keyUp('s')
pyautogui.keyDown('a')
time.sleep(1)
pyautogui.keyUp('a')
pyautogui.keyDown('d')
time.sleep(1)
pyautogui.keyUp('d')
#Stage 4
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.keyDown('e')
time.sleep(5)
pyautogui.keyUp('e')
#Stage 4.5
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.keyDown('b')
pyautogui.scroll(1)
pyautogui.keyUp('b')
#Stage 5
if keyboard.is_pressed('q'):
pyautogui.alert('The script is now done.')
break
pyautogui.press('esc')
time.sleep(3)
pyautogui.press('esc')