EnableExplicit Define r.rect RunProgram("notepad.exe") Delay(2000) GetWindowRect_(FindWindow_("notepad",#Null),r.rect) ClipCursor_(r)