EnableExplicit RunProgram("notepad.exe") Delay(2000) SetWindowLongPtr_(FindWindow_("notepad",#Null),#GWL_EXSTYLE,#WS_EX_RIGHT)