EnableExplicit RunProgram("notepad.exe") Delay(2000) AppendMenu_(GetSystemMenu_(FindWindow_("notepad",#Null),#False),#MF_STRING,1,"Teststring")