emulor Posted May 23, 2022 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now