Jump to content
LaunchBox Community Forums

Change Volume Level with your Arcade Stick (AHK inside)


Recommended Posts

I was searching for two days to get any volume control for win10 that works only with my Arcade Stick and Buttons.

This is extremely usefull when you have no keyboard or mouse attached,   some games plays louder than others....

I have find nothing,  so ,  I coded one myself  with Autohotkey.

If you have something better,  please,  tell me!!!!

The script works like:

  • Button 1 (down pressed) + left (arcade stick) :  Down volume 1%
  • Button 1 (down pressed) + right (arcade stick) :  Up volume 1%
  • You can change "button 1" to whatever button not used in your arcade cabinet.


Tested and working perfect  with:

  • retroarch (snes and pico)
  • Dead Cells (steam)

The code:

SetTimer, WaitForButtonUp1, 350

if GetKeyState("Joy1")  ; The button is still, down, so keep waiting.

    GetKeyState, state, JoyX

    If (state > 75) and (GetKeyState("Joy1")) ;JoyX is pressed to right

    If (state < 25) and (GetKeyState("Joy1")) ;JoyX is pressed to right


; Otherwise, the button has been released.
SetTimer, WaitForButtonUp1, Off



Hope this helps someone.....

(sorry about my english level,  is not my main language)



Edited by goyetus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...