For those of you using AHK or those interested, I recently decided I needed a hotkey to toggle the Windows 10 Default App modes (light theme and dark theme). Lo and behold, AHK and RegEdit to the rescue.
ToggleWindowsDefaultAppMode() {
RegRead, appMode, HKCU, Software\Microsoft\Windows\CurrentVersion\Themes\Personalize, AppsUseLightTheme
RegWrite, REG_DWORD, HKCU, Software\Microsoft\Windows\CurrentVersion\Themes\Personalize, AppsUseLightTheme, % !appMode
}
Note: You may need to add the registry key Personalize and its DWORD AppsUseLightTheme if you don’t have them.