using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Set the timeouts you want to toggle between here
int timeout1 = 1;
int timeout2 = 20;
// Get the current timeout
int currentTimeout = BFS.ScreenSaver.GetTimeoutMinutes();
// Set the new timeout
if (currentTimeout == timeout1)
BFS.ScreenSaver.SetTimeoutMinutes(timeout2);
else
BFS.ScreenSaver.SetTimeoutMinutes(timeout1);
}
}