hwnd = FindWindow_("notepad",#Null) If hwnd GetWindowRect_(hwnd, @MyRect.RECT) MessageRequester("","X: "+Str(MyRect\Left)+Chr(13)+"Y: "+Str(MyRect\Top),0) EndIf