Get the height of the title bar

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Zenon
Posts: 1
Joined: 12 Jan 2017, 21:35

Get the height of the title bar

12 Jan 2017, 21:54

Is there any way to get the height in pixels of a given window's title bar?

Alternately, is there a way to get what percentage Windows is scaled to? (see here: http://bit.ly/2jdCL6L)

My end goal is to resize any window to fill the screen. The script I'm working off of sets the window's style to -0xC40000, which apparently removes the border and title bar, but the title bar stays on Universal apps. Right now I'm moving the window up past the top of the screen the height of the title bar, then resizing it to fill the screen. My Windows is scaled to 250% to fit my display, so 100 pixels works well for the title bar, but I want to be able to change that number depending on the size of the actual title bar.
User avatar
Darth_Diggler
Posts: 13
Joined: 21 Dec 2016, 10:07

Re: Get the height of the title bar

13 Jan 2017, 04:19

Code: Select all

SysGet
Is what you want

There is allot of commands for this function at the address below.
https://autohotkey.com/docs/commands/SysGet.htm

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, Google [Bot], peter_ahk and 323 guests