from time import sleep from auto_everything.base import Terminal t = Terminal() from auto_everything.gui import GUI gui = GUI() pyautogui = gui.autogui print( "You have to make sure you got chrome and terminator installed. (Press enter to continue)" ) # 1. start chrome t.kill("chrome") t.run_program("google-chrome-stable --force-device-scale-factor=1.5") sleep(2) pyautogui.press("f11") """ pyautogui.moveTo(0,0) while 1: if gui.exists("chrome_new_tab"): gui.click_after_exists("chrome_new_tab") break if gui.exists("chrome_untitled"): gui.click_after_exists("chrome_untitled") break pyautogui.typewrite("https://google.com") pyautogui.press("enter") if gui.exists("chrome_x"): gui.click_after_exists("chrome_x")
#!/usr/bin/env python3 from auto_everything.base import Terminal from os.path import abspath t = Terminal() args = t.get_args() if args == None: t.run_program( "sudo /opt/arduino/arduino /home/yingshaoxo/Codes/Python/driver/driver/driver.ino" ) else: t.run_program( "sudo /opt/arduino/arduino {path}".format(path=abspath(args[0])))