This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0 | |
#SingleInstance | |
A_IconTip := "Change screen refresh rate" | |
; Based on an AHK v1 script from this Reddit post | |
; https://www.reddit.com/r/AutoHotkey/comments/qeqhfs/switch_refresh_rate_using_hotkeys/ | |
; Hotkey modifier symbols: #=Win, !=Alt, ^=Ctrl, +=Shift | |
; Find and set max supported refresh rate for primary monitor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on https://renenyffenegger.ch/notes/Windows/PowerShell/examples/WinAPI/ExtractIconEx | |
function Export-IconImageManifest { | |
param ( | |
[String]$DllPath = "$env:SYSTEMROOT\System32\imageres.dll" | |
) | |
if (! (test-path $dllPath)) { | |
write-output "$dllPath is not a file" | |
return | |
} |
OlderNewer