Skip to content

Instantly share code, notes, and snippets.

@Kryeker
Last active August 22, 2018 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kryeker/eeeb18e76c639d13896fed9916a29299 to your computer and use it in GitHub Desktop.
Save Kryeker/eeeb18e76c639d13896fed9916a29299 to your computer and use it in GitHub Desktop.
Управление громкостью с помощью мыши
#InstallMouseHook
XButton1::
While GetKeyState("XButton1","P") ;уменьшаем звук пока нажата кнопка мыши
{
Send {Volume_Down}
Sleep, 100
}
Return
XButton2::
While GetKeyState("XButton2","P") ;увеличиваем звук пока нажата кнопка мыши
{
Send {Volume_Up}
Sleep, 100
}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment