Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Mute/Unmute Microphone

Description
This function will toggle mute on microphone.
Language
C#.net
Minimum Version
Created By
Shea Polansky54388
Contributors
-
Date Created
Oct 24, 2019
Date Last Modified
Oct 24, 2019

Scripted Function (Macro) Code

using System;
using System.Drawing;
using System.Runtime.InteropServices;

public static class DisplayFusionFunction
{
    [DllImport("user32.dll")] 
    public static extern IntPtr SendMessageW(IntPtr hWnd,int Msg,IntPtr wParam,IntPtr lParam);

    private const int WM_APPCOMMAND=0x319;

    private const int APPCOMMAND_MICROPHONE_VOLUME_MUTE=0x180000;

	public static void Run(IntPtr windowHandle)
	{
		SendMessageW(windowHandle, WM_APPCOMMAND, windowHandle, (IntPtr)APPCOMMAND_MICROPHONE_VOLUME_MUTE);
	}
}