Jump to content
Sign in to follow this  

[SOLVED] Get color and transparantie taskbar

Recommended Posts




Is it possible to get the color and the transparantie of the taskbar from windows 10

I've looked allmost everywere on the internet but I can find anything.


I've allready use PixelGetColor to get the color but there has to be a better way.

And this will not give the transparantie.



I'v found this, this gives the color but it always gives false at transpartie even de color code stay the same I've I toggeld between transparant taskbar and back.

Anyone has a idea?

#include <MsgBoxConstants.au3>
#include <WinAPIGdi.au3>

If Not _WinAPI_DwmIsCompositionEnabled() Then
    MsgBox(BitOR($MB_ICONERROR, $MB_SYSTEMMODAL), 'Error', 'Require Windows Vista or later with enabled Aero theme.')

Local $iColor = _WinAPI_DwmGetColorizationColor()
Local $iBlend = @extended

ConsoleWrite('Color for glass composition: 0x' & Hex($iColor) & @CRLF)
ConsoleWrite('Transparency: ' & (Not $iBlend) & @CRLF)



Above code only gives the highlight color but not the color of the taskbar.



I have found this register keys with a lot of searching on the internet, and made a small autoit test program of it.

$color_normal = "0x" & StringLeft(StringRight(RegRead("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent", "AccentPalette"), 24), 6)
$color_trans = "0x" & StringLeft(StringRight(RegRead("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent", "AccentPalette"), 16), 6)
$trans = RegRead("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize", "EnableTransparency")
ConsoleWrite("Transpart = " & $trans & @CRLF)
ConsoleWrite("Color normal = " & $color_normal & @CRLF)
ConsoleWrite("Color trans = " & $color_trans & @CRLF)

And I solved it my self


Edited by nend

Share this post

Link to post
Share on other sites

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
Sign in to follow this