gaem Posted February 16, 2020 Share Posted February 16, 2020 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 More sharing options...
junkew Posted February 21, 2020 Share Posted February 21, 2020 Did you check ms https://docs.microsoft.com/en-us/windows/win32/dwm/composition-ovw FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
gaem Posted March 2, 2020 Author Share Posted March 2, 2020 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 More sharing options...
Danyfirex Posted March 3, 2020 Share Posted March 3, 2020 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) $t.Color=Random(1000,100000,1) $t.AfterGlow=10 $t.ColorBalance=100 $t.AfterGlowBalance=50 $t.BlurBalance=50 $t.GlassReflectionIntensity=50 $t.OpaqueBlend=0 ConsoleWrite("_WinAPI_DwmSetColorizationParameters: " & _WinAPI_DwmSetColorizationParameters($t) & @CRLF) Saludos mLipok 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now