Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Disable TitleBar Buttons for Specified Time

Description
This script will toggle the TitleBar Buttons, wait the time specified in "disabledTimeMinutes" and then re-enable them.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
Jan 10, 2019
Date Last Modified
Jan 10, 2019

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr windowHandle)
	{
		// Set the amount of time in minutes here
		uint disabledTimeMinutes = 5;
		
		// Disable the TitleBar Buttons
		BFS.DisplayFusion.RunFunction("Toggle TitleBar Buttons");

        // Wait the specified time (time multiplied by 60000 to get it in milliseconds)
        BFS.General.ThreadWait(disabledTimeMinutes * 60000);
        
        // Enable the TitleBar Buttons
        BFS.DisplayFusion.RunFunction("Toggle TitleBar Buttons");
	}
}