res2k / HDRTray

Windows Notification Area icon to show and change HDR status
https://res2k.github.io/HDRTray/
GNU General Public License v3.0
148 stars 3 forks source link

Add key shortcut to toggle HDR #2

Closed Kathaarian closed 1 year ago

Kathaarian commented 1 year ago

Hi,

Been using the 0.2 version and it works perfectly, so thank you! A key shortcut to toggle between SDR and HDR would be a very welcome addition, since I don't use the Xbox Game Bar app myself (installing such a bloated piece of software just for its toggle functionality seems like overkill).

Apologies btw. if this isn't the right place for feedback and suggestions and thanks again for making HDRTray!

res2k commented 1 year ago

Hi, yes, this is the right place for feedback/suggestions:

As to your specific suggestions of adding a keyboard shortcut: I unfortunately have little reason/motivation to do that - first, I consider it redundant with the shortcut provided by the mentioned Xbox Game Bar, and second, I hardly even use that shortcut feature.

indigofairyx commented 2 weeks ago

if you use auto hotkey that's easy to set up...

global hdrToggle := false

^#h::    
    hdrToggle := !hdrToggle ; Toggle the state
    ; Check the state and run the corresponding command
    if (hdrToggle) {
        Run, "C:\Portable Programs\HDR Tray CMD\HDRCmd.exe" "on"
    } else {
        Run, "C:\Portable Programs\HDR Tray CMD\HDRCmd.exe" "off"
    }
Return