Search the Community
Showing results for tags 'heigth'.
Hello guys ... I noticed that a window created with AutoIt, the coordinates of width and height are relative to the client area rather than to the window itself! Well, after some tests I got this simple code that causes the width and height are for the window and not to the client area. I hope it's useful for someone else ... Code: Func _GUICreateEx($Title, $iWidth = 400, $iHeight = 400, $iLeft = -1, $iTop = -1, $iStyle = -1, $iexStyle = -1, $hParent = 0) If $iWidth > @DesktopWidth Then $iFrameY = DllCall("user32.dll", "int", "GetSystemMetrics", "int", 33) $iFrameY = $iFrameY