emulor Posté(e) le 23 mai 2022 Posté(e) le 23 mai 2022 (modifié) 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 Modifié le 23 mai 2022 par emulor
Messages recommandés
Veuillez vous connecter pour commenter
Vous pourrez laisser un commentaire après vous êtes connecté.
Connectez-vous maintenant