3

Currently I use WIN+A, then click on Night Light.

enter image description here

How I enable/disable Night Light with a single keyboard shortcut in Windows 10?

Franck Dernoncourt
  • 21,280
  • 51
  • 203
  • 349
  • It doesn't seem to be possible, but you can set a schedule for it. – DavidPostill Oct 16 '22 at 20:06
  • Voted to reopen, there could be solutions not using the registry, e.g. with Autohotkey or Sikuli. – Franck Dernoncourt Oct 18 '22 at 19:07
  • This got marked as a duplicate, since you accepted an answer, that was also an answer to the duplicate. – Ramhound Oct 19 '22 at 05:00
  • @Ramhound I accepted the answer after the question got closed, because other answers couldn't be added. – Franck Dernoncourt Oct 19 '22 at 05:22
  • @FranckDernoncourt - You don't have to accept an answer. By accepting the near duplicate answer that already exists, you single to the community the duplicate DOES answer your question. You can take this as feedback. It does not matter, I personal, already voted to keep your question closed when it appeared in the queue for the exact reason I describe – Ramhound Oct 19 '22 at 05:43
  • @Ramhound answers aren't only for the OP, but any reader – Franck Dernoncourt Oct 19 '22 at 05:46
  • @FranckDernoncourt - If anything the answer you received should have been submitted as an answer to the existing question that was asked 5 years ago. – Ramhound Oct 19 '22 at 06:15

1 Answers1

3

You can make 2 Registry files, one to turn Night light on, the other to shut it. However, it will take two key presses: one to call the shortcut you make to either script, the other, AltY, to accept the UAC prompt.

Export the following two keys in both states, ON and OFF:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\CloudStore\Store\DefaultAccount\Current\default$windows.data.bluelightreduction.bluelightreductionstate

and

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\CloudStore\Store\DefaultAccount\Current\default$windows.data.bluelightreduction.settings

Combine the .reg files for the two keys, i.e., into one file for ON and one for OFF.

Create shortcuts to the two .reg files.

DrMoishe Pippik
  • 29,631
  • 5
  • 41
  • 58