How to adjust AMS2 volume only while on track

Discussion in 'Automobilista 2 - General Discussion' started by SaxOhare, May 20, 2022.

  1. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,235
    Likes Received:
    1,047
    I wanted to have control over the volume of AMS2 compared to the rest of my system sounds

    I managed to get it done by using autohotkey and nircmd.exe (NirCmd 64)
    I had to assign wheel-buttons, I couldn't get keyboard working once AMS2 has focus
    JoystickTest.ahk will reveal your buttons
    Make sure to adjust the paths in the following and save as .ahk script

    Joy26::
    runwait, D:\Prime\Programs\nircmd-x64\nircmd.exe changeappvolume "D:\Games\steamapps\common\Automobilista 2\AMS2AVX.exe" -0.1
    return
    Joy28::
    runwait, D:\Prime\Programs\nircmd-x64\nircmd.exe changeappvolume "D:\Games\steamapps\common\Automobilista 2\AMS2AVX.exe" 0.1
    return

    NirCmd - Windows command line tool scroll down to bottom
     
    • Like Like x 2
  2. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,235
    Likes Received:
    1,047
    I adjusted the script a little, It now works for all window that has focus, so for every game
    And I added the option to start CrewChief incase I forgot and I am in a race

    Joy26::
    runwait, D:\Prime\Programs\nircmd-x64\nircmd.exe changeappvolume focused -0.1
    return

    Joy28::
    runwait, D:\Prime\Programs\nircmd-x64\nircmd.exe changeappvolume focused 0.1
    return

    Jov27::
    runwait, D:\Prime\Programs\nircmd-x64\nircmd.exe exec hide "C:\Program Files (x86)\Britton IT Ltd\CrewChiefV4\CrewChiefV4.exe"
     
  3. Sneablathes

    Sneablathes New Member

    Joined:
    Apr 15, 2024
    Messages:
    3
    Likes Received:
    0
    I am using AutoHotKey V2 for a random car selector script. The game seems to ignore all inputs from the script. How did you get around that?
     
  4. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,235
    Likes Received:
    1,047
    I only can manipulate values that have a key assigned in the game, I use those keys in my scripts.for me there was nothing to work around, it just works (for me)
     
  5. PaulA

    PaulA Active Member AMS2 Club Member

    Joined:
    Jul 4, 2022
    Messages:
    200
    Likes Received:
    88
    I know it wont be applicable to everyone.

    but if anyone happens to have a stream deck. There is an audio mixer plugin - that allows you to change the volume mix of all open applications on the fly.
    (AMS2 / Discord / Windows etc)
     
    • Informative Informative x 1

Share This Page