Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Trigger to enable and disable HDR?

User Image
Sullie
19 discussion posts
Hi all,

Having an issue with 1 app that hates HDR, but I keep forgetting to turn it off and then on when the program closes. Any way to automate this with a script?

Sullie
Oct 11, 2020  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Unfortunately I don't think there's a way to toggle that setting outside of the Settings window :(

Sorry!
Oct 15, 2020  • #2
User Image
Sullie
19 discussion posts
No worries. Thanks for letting me know.
Oct 15, 2020  • #3
User Image
Tarv
7 discussion posts
Not the best option, but a script work around if anyone is interested. When the settings window changes between windows versions, you probably have to tweak the tab movements.

Paste in a text file and rename with the .VBS extension.

Code

Set oShell = CreateObject("WScript.Shell")

'close settings window to start fresh
oShell.Run("""ms-settings:display""")
WScript.Sleep 1000
oShell.SendKeys "%{F4}"

'open settings, set to correct page
oShell.Run("""ms-settings:display""")
WScript.Sleep 1000
oShell.AppActivate "settings"
WScript.Sleep 1000

'select "windows hd color settings"
oShell.SendKeys "{TAB}"
WScript.Sleep 50
oShell.SendKeys " "

WScript.Sleep 1000

'select "choose display" drop down and move to the top and select primary display
oShell.SendKeys "{TAB}"
WScript.Sleep 50
oShell.SendKeys "{TAB}"
WScript.Sleep 50
oShell.SendKeys " "
WScript.Sleep 50
oShell.SendKeys "{UP}"
WScript.Sleep 50
oShell.SendKeys "{UP}"
WScript.Sleep 50
oShell.SendKeys "{UP}"
WScript.Sleep 50
oShell.SendKeys "{UP}"
WScript.Sleep 50
oShell.SendKeys " "

WScript.Sleep 1000

'select "use hdr" toggle
oShell.SendKeys "{TAB}"
WScript.Sleep 50
oShell.SendKeys " "

WScript.Sleep 4000

'done
oShell.SendKeys "%{F4}"
Aug 28, 2021  • #4
User Image
Sullie
19 discussion posts
Thanks for a solution, Tarv. I've used something similar in the past, but found some issues when Windows would update etc.

I'm using a program called AutoHDR, which seems to be doing the trick. Hopefully one day DisplayFusion will include the options, as it would be great to reduce the number of extra programs running/incorporate the functions into DF scripts.
Aug 29, 2021  • #5
User Image
Tarv
7 discussion posts
Nice one, checking out AutoHDR.
Aug 29, 2021  • #6
User Image
Chris Rotter
122 discussion posts
Is it possible then to toggle HDR per application ?
Jun 26, 2022  • #7
User Image
Tarv
7 discussion posts
Quote:
Is it possible then to toggle HDR per application ?

Check out https://github.com/Codectory/AutoActions/releases (previously AutoHDR)
Jun 26, 2022 (modified Jun 26, 2022)  • #8
Was this helpful?  Login to Vote(2)  Login to Vote(-)