Apply Dark Theme to Your MsgBox

Post your working scripts, libraries and tools.
User avatar
NPerovic
Posts: 39
Joined: 31 Dec 2022, 01:25
Contact:

Apply Dark Theme to Your MsgBox

18 Apr 2024, 15:39

The original built-in MsgBox is too bright to you? Try this!

image.png
(18.27 KiB) Downloaded 46 times

Get Code
For v2.1-alpha.9 users: Click here
For v2.0 users: Click here


Example for v2.1-alpha.9

Code: Select all

#requires AutoHotkey v2.1-alpha.9
#include <Dark_MsgBox>
MsgBox "HELLO", "QQQQ"
Example for v2.0

Code: Select all

#requires AutoHotkey v2
#include <Dark_MsgBox_v2>
MsgBox "HELLO", "QQQQ"

Note
Win 10 doesn't support these 3 lines. So, the result might look slightly different.

Code: Select all

#requires AutoHotkey v2
/* Set DWMWA_SYSTEMBACKDROP with DWMSBT_MAINWINDOW  */
DwmSetWindowAttribute(hwnd, 38, 2)
/* Change border color */
DwmSetWindowAttribute(hwnd, 34, 0xFFFFFFFE)
/* Change Title bar color */
DwmSetWindowAttribute(hwnd, 35, 0x2b2b2b)
Attachments
image.png
(38.96 KiB) Downloaded 90 times
✨ Dark Theme for Everything
✨ Other Scripts

Joeyy
Posts: 47
Joined: 08 Mar 2019, 01:57

Re: Apply Dark Theme to Your MsgBox

Yesterday, 23:57

Thanks! Can you share the code for dark UIAViewer?

Return to “Scripts and Functions (v2)”

Who is online

Users browsing this forum: No registered users and 23 guests