-
I had a security breach, and one of the countermeasures I came up with is to have windows play a chime when someone logs into windows. I asked chatgpt to make me such code and set it up through task scheduler. I have a wav file that plays every time i log into the windows, but if I listen to music via chrome or VLC I might not hear the chime. I don't want the chime to be crazy loud or alarming that drives me nuts every time I log in, so I want the script to mute the app ( chrome.exe and vlc.exe) while leaving system sound as is, play the chime and put the volume back up after. here is the powershell script if anyone wants to see it or if it helps: ( i took out the hashtags from in front of the sentences) Define the path to Volume2 Mute Chrome by setting its volume to 0 Wait for 3 seconds Unmute Chrome by setting its volume back to a normal level (assuming 100%) Here is another one chatgpt gave me before: **_Define the path to Volume2 Set the system volume to 0 (or any other volume level you prefer) Wait for 3 seconds Restore the system volume to the previous level (assuming it was 100%) Yes Volume2's path is correct. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay, Volume2 does not support /APP chrome.exe. But you can use alternative device, set control specific application chrome.exe and then use this parameter: /MUTE ALTDEVICE |
Beta Was this translation helpful? Give feedback.
Okay, Volume2 does not support /APP chrome.exe. But you can use alternative device, set control specific application chrome.exe and then use this parameter: /MUTE ALTDEVICE