emulor Posté(e) le 26 septembre 2018 Posté(e) le 26 septembre 2018 (modifié) 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 (https://autohotkey.com)    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 https://autohotkey.com/docs/commands/KeyWait.htm)    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  $Joy8:: KeyWait, Joy8, T1.5 If ErrorLevel { Send {Volume_Up 2} } Else Send {Joy8} Return $Joy4:: KeyWait, Joy4, T1.5 If ErrorLevel { Send {Volume_Down 2} } Else Send {Joy4} Return  ControlVolume.exe Modifié le 26 septembre 2018 par emulor 2
Messages recommandés
Veuillez vous connecter pour commenter
Vous pourrez laisser un commentaire après vous êtes connecté.
Connectez-vous maintenant