Window border size

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mafiamoe
Junior Coder
Posts: 38
Joined: Thu Jul 06, 2006 8:28 am

Window border size

Post by mafiamoe » Tue Mar 10, 2009 5:26 am

Trying to get the window boarder size of a window, as switching from computer to computer can throw the code off. I am not that familiar with vbscript, but was able to find this link online that make is seem like I'm close if only I knew that language.

http://msdn.microsoft.com/en-us/library ... S.71).aspx

Any help will be greatly appreciated.

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Wed Mar 11, 2009 1:54 pm

If I'm understanding you correctly you want to know the pixel count difference between the X/Y coordinates of a dialog and the X/Y coordinates of the actual working area of a dialog. This is necessary because computer users can (and do) modify their window appearance settings making their borders and title bars different sizes.

Select the link below. Look to Marcus' supplied dll near the end.
Hope THIS helps.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts