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?

Confirm

Are you sure?
Save up to 50% on our desktop apps during our Year End Sale!Save up to 50% on our desktop apps during our Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our Year End Sale!

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");
	}
}