Aller au contenu

Control Sound with Cabinet Buttons

Messages recommandés

I leave here this tip to anyone who needs to use arcade cabinet buttons to control the sound, without a mouse or keyboard on Windows cabinet.

This is a AutoHotKey script. In the end of this post you have download link of compiled script to exe to use button 4 and button 8 of first joystick set to decrease and increase sound. I use it in Win7.

How it work?
    Pressing button 8 for more than 1,5 seconds increase sound by 2
    Pressing button 4 for more than 1,5 seconds decrease sound by 2

How change for your need?
    Install AutoHotKey (
    Click on Desktop with Right Mouse Button and creat a AHK Script, copy the code above and save with ahk extension.
    Simple change Joy8 or Joy4 for the key/button you want.
            For example: second joystick set button 3   ->   2Joy3
    You can give any letter of keyboard too, or Control, Alt (see
    Compile ahk to exe file from AutoHotKey.

How to use?
    Make it autorun with startup.
    Create a Shortcut, and put it on Windows Startup Folder, or open the Run dialog from start menu and type shell:startup

   KeyWait, Joy8, T1.5
   If ErrorLevel {
      Send {Volume_Up 2}
   } Else
      Send {Joy8}

   KeyWait, Joy4, T1.5
   If ErrorLevel {
      Send {Volume_Down 2}
   } Else
   Send {Joy4}



Modifié par emulor

Partager ce message

Lien à poster
Partager sur d’autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant