Solved Night Light Toggle (.exe)


dacrone

Well-known member
Guru
VIP
Local time
3:16 AM
Posts
4,789
OS
Windows 11 Pro
EDIT: .exe changed. this is completely programmatic. no visual elements.
*If on 22H2 or 23H2, Turn ON and OFF Nigh Light in Settings > Display once Manually... otherwise it throws an error for some reason*
**24H2 works fine (first run takes a few seconds, but all subsequent runs are immediate)**

Had to split the exe into multiple archive portions due to file size upload limitations on this forum. it's total size is 5.94mb due to the libraries inside the compiled exe.

Download all 6 segments
Save in the same folder/directory
Remove the
Code:
.txt
file extension from each (had to use an allowed extension to upload to the forum)
Open Command Prompt in the directory with the .zip parts
Run
Code:
copy /b NightLightToggle.z* NightLightToggle.zip
to merge the parts into 1 .zip file
Extract the .zip and place the .exe where ever you want.



1742320904127.webp

1742321052453.webp

Python Source: .https://github.com/nathanbabcock/nightlight-cli/blob/main/src/nightlight.ts

Turns on or off Night Light. Change .txt file extension to .exe
 
Last edited:

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro
another one fixed. @Brink feel free to redistribute. thanks.
 

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro
You should probably explain what the app does internally. Otherwise folks are reluctant to run a random .EXE.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
You should probably explain what the app does internally. Otherwise folks are reluctant to run a random .EXE.
reads and toggles

HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\DefaultAccount\Current\default$windows.data.bluelightreduction.bluelightreductionstate\windows.data.bluelightreduction.bluelightreductionstate\Data
 

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro

Latest Support Threads

Back
Top Bottom