emulor 90 Posted May 23 Report Share Posted May 23 (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 by emulor 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.