AutoHotkey Community

It is currently May 26th, 2012, 3:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: April 7th, 2009, 9:49 pm 
Offline

Joined: July 5th, 2006, 6:22 am
Posts: 37
I'm wondering if there's some way to detect the height of the titlebar in a given window? I'm trying to hide part of a window but the dimensions change from Windows theme to Windows theme.

Thanks for any help.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2009, 6:46 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Please refer AHK Documentation for SysGet command.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: similar question
PostPosted: May 14th, 2009, 2:09 pm 
Offline

Joined: March 23rd, 2006, 2:20 pm
Posts: 128
How to detect the WIDTH AND HEIGHT OF A WINDOW BORDER? SysGet doesn't provide right solution:

Code:
loop, 10000
{
   SysGet, x, %a_index%
   if (x > 4) and (x < 8)
      msgbox, %a_index% - %x%
}


The actual (measured) thickness of my window border is about 6 pixels, but none of the values of x is between 4 and 8!

Code:
Gui, +AlwaysOnTop +Caption +ToolWindow +Border


(Windows Vista)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Exabot [Bot], notsoobvious and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group