def openApp(app): return App.open(app)
def closeApp(app): return App.close(app)
def switchApp(app): return App.focus(app)
def startApp(self): calcApp = App("Calculator") if not calcApp.window(): App.open("calc.exe"); wait(2) calcApp.focus(); wait(1)