Skip to content

Instantly share code, notes, and snippets.

@MrChrisWeinert
Created August 12, 2022 15:24
Show Gist options
  • Select an option

  • Save MrChrisWeinert/e21f4b64e04772d2fff1c7b9aa51f653 to your computer and use it in GitHub Desktop.

Select an option

Save MrChrisWeinert/e21f4b64e04772d2fff1c7b9aa51f653 to your computer and use it in GitHub Desktop.

Revisions

  1. MrChrisWeinert created this gist Aug 12, 2022.
    19 changes: 19 additions & 0 deletions hdrtoggle.vbs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    'Emergency script created for a friend to toggle HDR
    Set oShell = CreateObject("WScript.Shell")
    oShell.Run("""ms-settings:display""")
    WScript.Sleep 2000
    oShell.AppActivate "settings"
    WScript.Sleep 100
    oShell.SendKeys "{TAB}"
    WScript.Sleep 100
    oShell.SendKeys "{TAB}"
    WScript.Sleep 100
    oShell.SendKeys "{TAB}"
    WScript.Sleep 100
    oShell.SendKeys "{TAB}"
    WScript.Sleep 100
    oShell.SendKeys "{TAB}"
    WScript.Sleep 100
    oShell.SendKeys "{TAB}"
    WScript.Sleep 100
    oShell.SendKeys " "