Solved, I used WinGet (Auto Hot Key).
Code Working:
Browser_Home::
WinGet, pid, PID, ahk_exe SolarlandClient-Win64-Shipping.exe
run, C:\tools\nircmd.exe muteappvolume /%pid% 2
return
Solved, I used WinGet (Auto Hot Key).
Code Working:
Browser_Home::
WinGet, pid, PID, ahk_exe SolarlandClient-Win64-Shipping.exe
run, C:\tools\nircmd.exe muteappvolume /%pid% 2
return
Hello, I'm trying to mutate the game "Farlight 84" using nircmd.
When I put the name of the game that appears in the task manager it does not work.
Code (not work):
start C:\Users\myuser\nircmd.exe muteappvolume /SolarlandClient-Win64-Shipping.exe 2
When I put the id of the game that appears in the task manager it works.
Code (work):
start C:\Users\myuser\nircmd.exe muteappvolume /3608 2
This error only happens with this application, I manage to mutate the vlc using vlc.exe.
The problem using the game id is that it always changes when I open it.
Does anyone know how I can mute the app using the name?