Friday, April 10, 2015

Arma 3, Mute/Unmute Script

Whilst playing Arma 3, I found it frustrating that one could not easily mute/unmute the sound.

I had to go into the Arma 3 menu for audio, drag the slider down... then drag it back up again... and had to do this over and over and over... rather annoying.

I then did some research on a solution and couldn't find anything that would help. That's when AHK aka AutoHotKey came to mind.

I ended up finding some example code of what I wanted to achieve and continued from that.

AutoHotKey mute/unmute script
The script is coded for AutoHotKey Version 1.1.19.01 which you can download here. You MUST download and install this in order for the script to run and function.

You can view and download version 1.1.6 of my script here. The script also needs VA.ahk which you can also download at the github link above.

Once AHK is installed, the two script files are downloaded and expanded/unzipped, place the two .ahk scripts into the same directory and run/execute (double click) the "arma_3_mute_script_for_autohotkey_-_osd.ahk" file

A green icon should show up on your task bar to show that it has successfully loaded.

Go into your Arma 3 window, so that the game is focused and press the combination hot keys... 

"ctrl and numpad *" which will mute/unmute your audio for Arma 3 with the OSD showing.
"ctrl and numpad -" which will lower the audio for Arma 3 with the OSD showing.
"ctrl and numpad +" will increase the audio for Arma 3 with the OSD showing.

OSD when muted
OSD when adjusting volume
The script works with Arma 3 in all screen modes, full screen, window and full screen window modes, and are currently bound to keys on the numpad - + and *. The OSD will only show when the Arma 3 window is active and focused. The OSD also has a visual time-out set to 2 seconds, so it will remove itself from screen.

Please read the text at top of the script in order to understand how it functions, what is needed to make it function and how to customize the bonded hot keys.

Enjoy.

P.S. If you would like a compiled executable (stand-alone) version of this script, please message me.





-soul.