Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line keys do not work correctly #338

Closed
irzyxa opened this issue Oct 26, 2024 · 0 comments
Closed

Command line keys do not work correctly #338

irzyxa opened this issue Oct 26, 2024 · 0 comments

Comments

@irzyxa
Copy link
Owner

irzyxa commented Oct 26, 2024

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
$volume2Path = "C:\Program Files (x86)\Volume2\Volume2.exe"

Mute Chrome by setting its volume to 0
Start-Process -FilePath $volume2Path -ArgumentList "/Mute /AppName ""chrome.exe""" -NoNewWindow -Wait

Wait for 3 seconds
Start-Sleep -Seconds 3

Unmute Chrome by setting its volume back to a normal level (assuming 100%)
Start-Process -FilePath $volume2Path -ArgumentList "/Unmute /AppName ""chrome.exe""" -NoNewWindow -Wait

Here is another one chatgpt gave me before:

**_Define the path to Volume2
$volume2Path = "C:\Program Files (x86)\Volume2\Volume2.exe"

Set the system volume to 0 (or any other volume level you prefer)
Start-Process -FilePath $volume2Path -ArgumentList "/SetVolume 0" -NoNewWindow -Wait

Wait for 3 seconds
Start-Sleep -Seconds 3

Restore the system volume to the previous level (assuming it was 100%)
Start-Process -FilePath $volume2Path -ArgumentList "/SetVolume 100" -NoNewWindow -Wait

Yes Volume2's path is correct.

Originally posted by @CSOCSO-FL in #331

@irzyxa irzyxa closed this as completed Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant