def typeInNotepad(strText): Notepad.wndNotepad().Click() Win32API.SendKeys(strText)
def openProgramViaRunDialog(program): Win32API.SendKeys("{LWIN}{R}") WaitForExist(Notepad.dlgRun(), 5) Win32API.SendKeys(program) Win32API.SendKeys("{ENTER}")