Skip to content

Instantly share code, notes, and snippets.

@anonymous1184
Last active November 17, 2022 06:30
Show Gist options
  • Save anonymous1184/d056f94b137ac6b1d4390b2aa726510b to your computer and use it in GitHub Desktop.
Save anonymous1184/d056f94b137ac6b1d4390b2aa726510b to your computer and use it in GitHub Desktop.
Volume changer + OSD

; Version: 2022.11.17.1
; Usage and examples: https://redd.it/owgn3j
Volume(Offset) {
hWnd := DllCall("FindWindowA", "AStr","NativeHWNDHost", "Ptr",0)
DetectHiddenWindows On
PostMessage 0xC028, 0x0C, 0xA0000,, % "ahk_id" hWnd
SoundSet % Format("{:+d}", Offset)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment