emulor Posted May 23, 2022 Share Posted May 23, 2022 (edited) 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. $x:: KeyWait, x, T1.5 If ErrorLevel runwait, sndvol.exe -f Else Send {x} Return $y:: KeyWait, y, T1.5 If ErrorLevel Process, Close, sndvol.exe Else Send {y} Return Edited May 23, 2022 by emulor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now