hwnd = FindWindow_("notepad",#Null) If hwnd GetWindowRect_(hwnd, @MyRect.RECT) MessageRequester("","Breite: "+Str(MyRect\Right-MyRect\Left)+Chr(13)+"Höhe: "+Str(MyRect\Bottom-MyRect\Top),0) EndIf