manuelmayer-dev / Macro-Deck-Windows-Utils-Plugin

A collection of some useful functions for controlling Windows
MIT License
9 stars 14 forks source link

Button to turn off the pc and mute the microphone #16

Open MGTRFarabler opened 2 years ago

MGTRFarabler commented 2 years ago

Hello guys, I have an idea, it is to put an option to turn off the pc, and one to silence the microphone with the press of a button

VLTNOgithub commented 7 months ago

You can use the command shutdown /s /t 0 in the Command line command action. (Note that this will shutdown your pc immediately, so be careful) You can also use shutdown /a to cancel it.

More information in the documentation here.

For the mic muting, I found this reddit post that explains how to do it. However, it is a bit complicated and requires creating a file, compiling it, and then running it (which you can also do in the Command line command action).

kamishki commented 5 months ago

responding to old post. You should be able to Mute your mic by using powershell set-AudioDevice -RecordingCommunicationMute (0 or 1)

you may have to first run Install-Module -Name AudioDeviceCmdlets