Sure. I use these in combination with FreePBX and IoTLink to mute/unmute my phone depending on whether or not I’m on the phone. But you could easily adapt them to do all sorts.
C:\volmax.exe
IniRead, OutputVar, C:\Users\%A_UserName%\volume.ini, volume, key
SoundSet, %OutputVar%
IniRead, OutputVar, C:\Users\%A_UserName%\volume.ini, volume, key
If (OutputVar==0)
SoundSet, 100
Else
SoundSet, %OutputVar%
c:\Volmin.exe
SoundGet, master_volume
IniWrite, %master_volume%, C:\Users\%A_UserName%\volume.ini, volume, key
SoundSet, Mute
Listener
if (!A_IsAdmin)
{
Run % "*RunAs " DllCall("GetCommandLine", "Str")
ExitApp
}
#NoEnv
#Persistent
#SingleInstance Force
DetectHiddenWindows, On
SetTimer Check,2000
flag:=0
Return
Check:
SoundGet, master_volume
If (master_volume<=0) {
If (flag == 0) {
Gui, Font, cBlack
Gui, +LastFound +AlwaysOnTop +Caption +ToolWindow -SysMenu
Gui, Font, cBlack
Gui, Font, s34
Gui, Add, Button, Default gMute, UNMUTE?
Gui, Color, EEAA99
Gui +LastFound
WinSet, TransColor, EEAA99
Gui, Show, x1000 y55, ,
Gui -Caption
flag:=1
}
}
If (master_volume>=10) {
Gui, Destroy
flag:=0
}
Return
Mute:
Run, "C:\volmax.exe"
Gui, Destroy
flag:=0
Return