Jump to content

Change Cabinet Sound Volume


Recommended Posts

I created this simple AHK script to help modify the volume of my cabinet, since I don't use keyboard/mouse on it.
If anyone needs it, just change/assign the x and y keys for your cabinet key/button and the time (T1.5) to your liking.
It works by pressing the x or y key for 1.5sec, it opens/close the windows volume, being able to change it with the joystick cabinet (up/down)
AHK Keys list: https://www.autohotkey.com/docs/KeyList.htm
If want use with windows XP change sndvol.exe to sndvol32.exe

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.


KeyWait, x, T1.5
If ErrorLevel
    runwait, sndvol.exe -f
    Send {x}

KeyWait, y, T1.5
If ErrorLevel
    Process, Close, sndvol.exe
    Send {y}

Edited by emulor
Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...