duckling78 Posted January 23, 2007 Share Posted January 23, 2007 Here's a script snippet to find the window title height and window border width: $winTitle="Title of window here" $winSize = WinGetPos($winTitle) $clientSize = WinGetClientSize($winTitle) $borderWidth = $winSize[2] - $clientSize[0] $winTitleHeight = $winSize[3] - $borderWidth - $clientSize[1] I was fumbling around looking for variables or macros to get this information, but couldn't find it so made it myself. Not really sure if it's 100% accurate, but it seems to work for me in Windows XP and Vista so far Link to comment Share on other sites More sharing options...
_Kurt Posted January 23, 2007 Share Posted January 23, 2007 And.. do you have a problem? This is the General Help and Support Forum Try Example Scripts forum Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Zedna Posted January 23, 2007 Share Posted January 23, 2007 (edited) Const $SM_CYCAPTION = 4 Const $SM_CXFIXEDFRAME = 7 $wtit = DllCall('user32.dll', 'int', 'GetSystemMetrics', 'int', $SM_CYCAPTION) $wtit = $wtit[0] ; 19 or 26 $border = DllCall('user32.dll', 'int', 'GetSystemMetrics', 'int', $SM_CXFIXEDFRAME) $border = $border[0] ; 3 Look at my Radar project in my signature ... Edited January 23, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now