Microphone mute/umute with sound

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
prime7105
Posts: 2
Joined: 20 May 2021, 16:02

Microphone mute/umute with sound

Post by prime7105 » 04 Jul 2022, 11:55

Hello,

I have a script written to mute/unmute my microphone with soundBeep to play when the script is active. However, I'm not sure how to create an if/else statement to play a different soundBeep when the script is toggled again.

User avatar
mikeyww
Posts: 26602
Joined: 09 Sep 2014, 18:38

Re: Microphone mute/umute with sound

Post by mikeyww » 04 Jul 2022, 13:50

Code: Select all

F3::SoundBeep, 1000 + 500 * on := !on

Code: Select all

F3::
If on := !on
     SoundBeep, 1500
Else SoundBeep, 1000
Return

ananthuthilakan
Posts: 188
Joined: 08 Jul 2019, 05:37
Contact:

Re: Microphone mute/umute with sound

Post by ananthuthilakan » 05 Jul 2022, 09:58

mikeyww wrote:
04 Jul 2022, 13:50

Code: Select all

F3::SoundBeep, 1000 + 500 * on := !on
this piece of code looks interesting :)

Post Reply

Return to “Ask for Help (v1)”