Jump to content

How to use DWM colorization


Recommended Posts

The documentation doesn't say much about the usage of _WinAPI_DwmGetColorizationParameters and _WinAPI_DwmSetColorizationParameters. The example script for the get function doesn't even work properly, because it needs an update to be sent to the system, of which I couldn't get any info after searching about it for hours. So the question boils down to: what are the parts of the struct these functions use, and how to actually change the windows color scheme with them? Even just the taskbar would be just fine. Can anybody knowledgable on the subject please help me out?

Link to comment
Share on other sites

  • 2 weeks later...

Yes. But I don't really understand C++, nor do I see any relevant information regarding to the refresh. I guess turning DWM off and back on could (might?) do it, but then the question becomes: how do I do that with AutoIt. Also, it has nothing about how the AutoIt struct looks like. Is it the same as in the native DWM API? Fine, if it's so, I roughly understand that, but how do I use it? I'm slightly confused by structs in AutoIt, and the examples weren't too helpful either. I humbly ask for direct specific explanation or code example, because I learn better from these.
Just as enticement: the end result will be a wololo script, that chants wololo and changes the Windows colors 😆 Please help me complete this super simple looking, but actually pretty frustrating AutoIt script. I'd very much like to use nothing but AutoIt for it, and have no problems with the sound part (as far as I can tell), but I tried changing the colors with PowerShell via registry, and I need a refresh method. Unfortunately, as far as I can tell, I also need that for the DWM API method, so I hit a wall there. Plus, as I said, I don't really understand the inner workings of these functions, and can't find useful, practical code examples either.

Link to comment
Share on other sites

I think something like this should work.

#include <WinAPIGdi.au3>

Local $t=_WinAPI_DwmGetColorizationParameters()

ConsoleWrite(Hex($t.Color) & @CRLF)
ConsoleWrite($t.AfterGlow & @CRLF)
ConsoleWrite($t.ColorBalance & @CRLF)
ConsoleWrite($t.AfterGlowBalance & @CRLF)
ConsoleWrite($t.BlurBalance & @CRLF)
ConsoleWrite($t.GlassReflectionIntensity & @CRLF)
ConsoleWrite($t.OpaqueBlend & @CRLF)


ConsoleWrite("_WinAPI_DwmSetColorizationParameters: " & _WinAPI_DwmSetColorizationParameters($t) & @CRLF)


Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...