Jump to content

Recommended Posts

Posted

Does anybody know how I would go about getting the window title bar colour on Windows 10? I tried using _WinAPI_GetSysColor, and manually reading the registry (HKCU\Control Panel\Colors, ActiveTitle) but in either case I get the same (0x99B4D1, wrong) result.

RegRead('HKCU\Control Panel\Colors', 'ActiveTitle') ; Returns 153 180 209 (aka 99B4D1)
_WinAPI_GetSysColor ($COLOR_ACTIVECAPTION) ; Returns 0xD1B499 (aka 99B4D1)

 

Posted

But it's not just reverse (which I expected), it's wrong.

As I pointed out above, the colour I can get is 153-180-209, or 0x99B4D1, and the colour I'm expecting is 0-99-177, or 0x0063B1 (or, reversed: 0xB16300). I don't know how to find that colour.

Posted

What does the following return, I believe the previous colors you were looking at are Windows standard colors, i.e. no theme applied.

$fTaskBar = "0x" & StringMid(RegRead("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent", "AccentPalette"), 27, 6)

 

Posted (edited)

Ah yes, that's exactly what I was looking for. Thank you. :)

Is there any documentation on this? Curious what the rest of the data in that key is for.

*Edit: After using your info as a jump off point I also found this other AutoIt thread: 

Thanks again.

 

Edited by therks

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...