This commit is contained in:
2025-10-25 21:29:34 +02:00
parent 7c6494b93b
commit 9a5846edff

View File

@@ -669,10 +669,17 @@ def on_message(client, userdata, msg):
writeLog(myCmd)
subprocess.Popen(myCmd.split())
if myObj["cmd"] == "assist":
if curos == "Windows":
if myObj['target'] == "start":
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 0.2'
else:
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 1'
else:
if myObj['target'] == "start":
myCmd =f'amixer set Master 100%'
else:
myCmd =f'amixer set Master 20%'
writeLog(myCmd)
output = subprocess.Popen(myCmd, shell=True)
writeLog(output)