void Run() -- Run(Form form) -- Run(ApplicationContext context)
BFS.Application.Run(); -- BFS.Application.Run(new FormMain()); -- BFS.Application.Run(new ApplicationContext());
bool WaitForExitByFile(uint appID, uint waitMS);
bool exited = BFS.Application.WaitForExitByFile("*excel.exe", 5000);
string GetUserInputList(string title, string[] values);
string input = BFS.Dialog.GetUserInputList("Test", new string[] { "Item #1", "Item #2", "Item #3" });
string GetUserInputListViewWithFilter(string title, string[] values);
string input = BFS.Dialog.GetUserInputListViewWithFilter("Test", new string[] { "Item #1", "Item #2", "Item #3" });
string GetUserInputList(string title, string[] values, int width, int height);
string input = BFS.Dialog.GetUserInputListViewWithFilter("Test", new string[] {"Item #1", "Item #2", "Item #3" }, 350, 500);
string GetUserInputList(string title, string[] values, int width, int height);
string input = BFS.Dialog.GetUserInputList("Test", new string[] { "Item #1", "Item #2", "Item #3" }, 350, 500);
bool DisableAllTaskbars();
bool ok = BFS.DisplayFusion.DisableAllTaskbars();
bool DisableTaskbar(uint monitorID);
bool ok = BFS.DisplayFusion.DisableTaskbar(1); //Disables the Taskbar on Monitor #1
bool EnableAllTaskbars();
bool ok = BFS.DisplayFusion.EnableAllTaskbars();
bool EnableTaskbar(uint monitorID);
bool ok = BFS.DisplayFusion.EnableTaskbar(1); //Enables the Taskbar on Monitor #1
bool EnableTaskbarOnSide(uint monitorID, string side);
bool ok = BFS.DisplayFusion.EnableTaskbarOnSide(1, "T"); //Enables the Taskbar on Monitor #1 on the Top side
string GetCurrentMonitorProfile();
string profileName = BFS.DisplayFusion.GetCurrentMonitorProfile();
string GetCurrentWallpaperProfile();
string profileName = BFS.DisplayFusion.GetCurrentWallpaperProfile();
string[] GetDesktopIconsProfiles();
string[] profiles = BFS.DisplayFusion.GetDesktopIconsProfiles();
string[] GetFunctions();
string[] functions = BFS.DisplayFusion.GetFunctions();
string[] GetMonitorProfiles();
string[] profiles = BFS.DisplayFusion.GetMonitorProfiles();
string[] GetWallpaperProfiles();
string[] profiles = BFS.DisplayFusion.GetWallpaperProfiles();
bool IsTaskbarAutohideEnabled(uint monitorId);
bool isAutohideEnabled = BFS.DisplayFusion.IsTaskbarAutohideEnabled(2);
void BFS.DisplayFusion.LoadApplicationHooks();
BFS.DisplayFusion.LoadApplicationHooks();
bool LoadDesktopIconsProfile(string name);
bool ok = BFS.DisplayFusion.LoadDesktopIconsProfile("My Home Icons");
bool LoadMonitorProfile(string name);
bool ok = BFS.DisplayFusion.LoadMonitorProfile("My 3 Monitors");
bool LoadMonitorProfileHideErrors(string name);
bool ok = BFS.DisplayFusion.LoadMonitorProfileHideErrors("My 3 Monitors");
bool LoadWallpaperProfile(string name);
bool ok = BFS.DisplayFusion.LoadWallpaperProfile("My 3 Wallpapers");
bool LoadWindowPositionProfile(string name);
bool ok = BFS.DisplayFusion.LoadWindowPositionProfile("My Profile");
IntPtr MirrorMonitor(uint monitorID);
IntPtr windowHandle = BFS.DisplayFusion.MirrorMonitor(2);
IntPtr MirrorMonitorNoBorder(uint monitorID);
IntPtr windowHandle = BFS.DisplayFusion.MirrorMonitorNoBorder(2);
IntPtr MirrorMonitorWithSplits(uint monitorID);
IntPtr windowHandle = BFS.DisplayFusion.MirrorMonitorWithSplits(2);
IntPtr MirrorMonitorWithSplitsNoBorder(uint monitorID);
IntPtr windowHandle = BFS.DisplayFusion.MirrorMonitorWithSplitsNoBorder(2);
IntPtr MirrorSelectedArea(int x, int y, int width, int height);
IntPtr windowHandle = BFS.DisplayFusion.MirrorSelectedArea(100, 100, 400, 400);
IntPtr MirrorSelectedAreaNoBorder(int x, int y, int width, int height);
IntPtr windowHandle = BFS.DisplayFusion.MirrorSelectedAreaNoBorder(100, 100, 400, 400);
IntPtr MirrorWindow(IntPtr windowHandle);
IntPtr windowHandle = BFS.DisplayFusion.MirrorWindow(myWindowHandle);
IntPtr MirrorWindowNoBorder(IntPtr windowHandle);
IntPtr windowHandle = BFS.DisplayFusion.MirrorWindowNoBorder(myWindowHandle);
void BFS.DisplayFusion.OpenMonitorConfigWindow();
BFS.DisplayFusion.OpenMonitorConfigWindow();
void BFS.DisplayFusion.OpenScreenSaverSettingsWindow();
BFS.DisplayFusion.OpenScreenSaverSettingsWindow();
void BFS.DisplayFusion.OpenSettingsWindow();
BFS.DisplayFusion.OpenSettingsWindow();
void OpenWallpaperWindow();
BFS.DisplayFusion.OpenWallpaperWindow();
bool ReloadSettings();
bool ok = BFS.DisplayFusion.ReloadSettings();
bool RunFunction(string name);
bool ok = BFS.DisplayFusion.RunFunction("My Other Function");
bool RunFunctionAndWait(string name);
bool ok = BFS.DisplayFusion.RunFunctionAndWait("My Other Function");
bool RunFunctionAndWaitWithWindowHandle(string name, IntPtr windowHandle);
bool ok = BFS.DisplayFusion.RunFunctionAndWaitWithWindowHandle("My Other Function", windowHandle);
bool RunFunctionWithWindowHandle(string name, IntPtr windowHandle);
bool ok = BFS.DisplayFusion.RunFunctionWithWindowHandle("My Other Function", windowHandle);
bool SaveDesktopIconsProfile(string name);
bool ok = BFS.DisplayFusion.SaveDesktopIconsProfile("My Home Icons");
bool SaveWindowPositionProfile(string name);
bool ok = BFS.DisplayFusion.SaveWindowPositionProfile("My Profile");
bool SetTaskbarAutohideEnabled(uint monitorId, bool autohideEnabled);
BFS.DisplayFusion.SetTaskbarAutohideEnabled(2, true);
void BFS.DisplayFusion.UnloadApplicationHooks();
BFS.DisplayFusion.UnloadApplicationHooks();
bool WallpaperFeatureDisable();
bool ok = BFS.DisplayFusion.WallpaperFeatureDisable();
bool WallpaperFeatureEnable();
bool ok = BFS.DisplayFusion.WallpaperFeatureEnable();
bool WallpaperFeatureToggle();
bool ok = BFS.DisplayFusion.WallpaperFeatureToggle();
void BFS.DisplayFusion.WallpaperLoadNextImage();
BFS.DisplayFusion.WallpaperLoadNextImage();
bool WallpaperSlideshowPause();
bool ok = BFS.DisplayFusion.WallpaperSlideshowPause();
bool WallpaperSlideshowResume();
bool ok = BFS.DisplayFusion.WallpaperSlideshowResume();
bool WallpaperSlideshowToggle();
bool ok = BFS.DisplayFusion.WallpaperSlideshowToggle();
int CountRunningFunctions(string name)
int count = BFS.General.CountRunningFunctions("My Function");
bool IsFunctionRunning(string name);
bool isRunning = BFS.General.IsFunctionRunning("My Custom Function");
bool Sleep(uint waitMS);
bool ok = BFS.General.Sleep(500);
bool SendKeyDownWithoutWait(string keys);
bool ok = BFS.Input.SendKeyDownWithoutWait("X"); //Press X
bool SendKeysFastWithoutWait(string keys);
bool ok = BFS.Input.SendKeysFastWithoutWait("%{X}"); //Sends Alt+X
bool SetMousePositionRelativeNoAcceleration(int x, int y);
bool ok = BFS.Input.SetMousePositionRelativeNoAcceleration(10, 20); //Moves the mouse cursor right 10, down 20
Rectangle[] GetMonitorBounds();
Rectangle[] bounds = BFS.Monitor.GetMonitorBounds();
Rectangle GetMonitorBoundsByID(uint monitorID);
Rectangle bounds = BFS.Monitor.GetMonitorBoundsByID(monitorID);
Rectangle GetMonitorBoundsByMouseCursor();
Rectangle bounds = BFS.Monitor.GetMonitorBoundsByMouseCursor();
Rectangle GetMonitorBoundsByRect(Rectangle rect);
Rectangle bounds = BFS.Monitor.GetMonitorBoundsByRect(rect);
Rectangle GetMonitorBoundsByWindow(IntPtr windowHandle);
Rectangle bounds = BFS.Monitor.GetMonitorBoundsByWindow(windowHandle);
Rectangle GetMonitorBoundsByXY(int x, int y);
Rectangle bounds = BFS.Monitor.GetMonitorBoundsByXY(x, y);
Rectangle[] GetMonitorBoundsNoSplits();
Rectangle[] bounds = BFS.Monitor.GetMonitorBoundsNoSplits();
int GetMonitorCountEnabled();
int count = BFS.Monitor.GetMonitorCountEnabled();
int GetMonitorCountEnabledAndDisabled();
int count = BFS.Monitor.GetMonitorCountEnabledAndDisabled();
int GetMonitorCountEnabledNoSplits();
int count = BFS.Monitor.GetMonitorCountEnabledNoSplits();
uint GetMonitorIDByRect(Rectangle rect);
uint monitorID = BFS.Monitor.GetMonitorIDByRect(rect);
uint GetMonitorIDByWindow(IntPtr windowHandle);
uint monitormonitorID = BFS.Monitor.GetMonitorIDByWindow(windowHandle);
uint GetMonitorIDByXY(int x, int y);
uint monitormonitorID = BFS.Monitor.GetMonitorIDByXY(x, y);
uint[] GetMonitorIDs();
uint[] ids = BFS.Monitor.GetMonitorIDs();
Rectangle GetMonitorWorkAreaByID(uint monitorID);
Rectangle area = BFS.Monitor.GetMonitorWorkAreaByID(monitorID);
Rectangle GetMonitorWorkAreaByMouseCursor();
Rectangle area = BFS.Monitor.GetMonitorWorkAreaByMouseCursor();
Rectangle GetMonitorWorkAreaByRect(Rectangle rect);
Rectangle area = BFS.Monitor.GetMonitorWorkAreaByRect(rect);
Rectangle GetMonitorWorkAreaByWindow(IntPtr windowHandle);
Rectangle area = BFS.Monitor.GetMonitorWorkAreaByWindow(windowHandle);
Rectangle GetMonitorWorkAreaByXY(int x, int y);
Rectangle area = BFS.Monitor.GetMonitorWorkAreaByXY(x, y);
Rectangle[] GetMonitorWorkAreas();
Rectangle[] workareas = BFS.Monitor.GetMonitorWorkAreas();
Rectangle GetPrimaryMonitorBounds();
Rectangle bounds = BFS.Monitor.GetPrimaryMonitorBounds();
uint GetPrimaryMonitorID();
uint monitormonitorID = BFS.Monitor.GetPrimaryMonitorID();
Rectangle GetPrimaryMonitorWorkArea();
Rectangle area = BFS.Monitor.GetPrimaryMonitorWorkArea();
bool BFS.MonitorFading.Disable();
bool ok = BFS.MonitorFading.Disable();
bool BFS.MonitorFading.Enable();
bool ok = BFS.MonitorFading.Enable();
int BFS.MonitorFading.GetOpacity();
int opacity = BFS.MonitorFading.GetOpacity();
bool BFS.MonitorFading.IsEnabled();
bool isEnabled = BFS.MonitorFading.IsEnabled();
bool BFS.MonitorFading.SetOpacity(int opacity);
bool ok = BFS.MonitorFading.SetOpacity(75);
bool BFS.MonitorFading.ToggleEnabled();
bool ok = BFS.MonitorFading.ToggleEnabled();
bool TextToSpeechWithVoice(string text, string voice);
bool ok = BFS.Speech.TextToSpeechWithVoice("Hello, this is my voice!", "Microsoft David Desktop - English (United States)");
IntPtr[] GetVisibleWindowHandlesByMonitor(uint monitorID);
IntPtr[] windowHandles = BFS.Window.GetVisibleWindowHandlesByMonitor(2);
IntPtr GetWindowByText(string windowText);
IntPtr windowHandle = BFS.Window.GetWindowByText("starts with*");
IntPtr GetWindowByTextExact(string windowText);
IntPtr windowHandle = BFS.Window.GetWindowByTextExact("my title text exactly");
IntPtr[] GetWindowsByText(string windowText);
IntPtr[] windowHandles = BFS.Window.GetWindowsByText("starts with*");
IntPtr[] GetWindowsByTextExact(string windowText);
IntPtr[] windowHandles = BFS.Window.GetWindowsByTextExact("my window title");
bool IsOnCurrentVirtualDesktop(IntPtr windowHandle)
bool isWindowOnCurrentVirtualDesktop = BFS.Window.IsOnCurrentVirtualDesktop(windowHandle);
bool IsWindowRolledUpToHat(IntPtr windowHandle);
bool isRolledUp = BFS.Window.IsWindowRolledUpToHat(windowHandle);
bool IsWindowRolledUpToIcon(IntPtr windowHandle);
bool isRolledUp = BFS.Window.IsWindowRolledUpToIcon(windowHandle);
bool IsWindowRolledUpToTitleBar(IntPtr windowHandle);
bool isRolledUp = BFS.Window.IsWindowRolledUpToTitleBar(windowHandle);
bool MoveToBottomMonitorHalf(IntPtr windowHandle);
bool ok = BFS.Window.MoveToBottomMonitorHalf(windowHandle);
bool MoveToCentreMonitor(IntPtr windowHandle);
bool ok = BFS.Window.MoveToCentreMonitor(windowHandle);
bool MoveToLeftMonitorHalf(IntPtr windowHandle);
bool ok = BFS.Window.MoveToLeftMonitorHalf(windowHandle);
bool MoveToMonitor(uint monitorID, IntPtr windowHandle);
bool ok = BFS.Window.MoveToMonitor(monitorID, windowHandle);
bool MoveToMonitorMaximized(uint monitorID, IntPtr windowHandle);
bool ok = BFS.Window.MoveToMonitorMaximized(monitorID, windowHandle);
bool MoveToMonitorResized(uint monitorID, IntPtr windowHandle);
bool ok = BFS.Window.MoveToMonitorResized(monitorID, windowHandle);
bool MoveToNextMonitor(IntPtr windowHandle);
bool ok = BFS.Window.MoveToNextMonitor(windowHandle);
bool MoveToNextMonitorMaximized(IntPtr windowHandle);
bool ok = BFS.Window.MoveToNextMonitorMaximized(windowHandle);
bool MoveToNextMonitorResized(IntPtr windowHandle);
bool ok = BFS.Window.MoveToNextMonitorResized(windowHandle);
bool MoveToPreviousMonitor(IntPtr windowHandle);
bool ok = BFS.Window.MoveToPreviousMonitor(windowHandle);
bool MoveToPreviousMonitorMaximized(IntPtr windowHandle);
bool ok = BFS.Window.MoveToPreviousMonitorMaximized(windowHandle);
bool MoveToPreviousMonitorResized(IntPtr windowHandle);
bool ok = BFS.Window.MoveToPreviousMonitorResized(windowHandle);
bool MoveToRightMonitorHalf(IntPtr windowHandle);
bool ok = BFS.Window.MoveToRightMonitorHalf(windowHandle);
bool MoveToTopMonitorHalf(IntPtr windowHandle);
bool ok = BFS.Window.MoveToTopMonitorHalf(windowHandle);
bool RemoveWindowHighlight(IntPtr windowHandle);
bool ok = BFS.Window.RemoveWindowHighlight(windowHandle);
bool RollupWindowToHat(IntPtr windowHandle);
bool ok = BFS.Window.RollupWindowToHat(windowHandle);
bool RollupWindowToIcon(IntPtr windowHandle);
bool ok = BFS.Window.RollupWindowToIcon(windowHandle);
bool RollupWindowToTitleBar(IntPtr windowHandle);
bool ok = BFS.Window.RollupWindowToTitleBar(windowHandle);
bool SetWindowHighlight(IntPtr windowHandle, Color colour);
bool ok = BFS.Window.SetWindowHighlight(windowHandle, Color.Red);
bool UnrollWindowFromHat(IntPtr windowHandle);
bool ok = BFS.Window.UnrollWindowFromHat(windowHandle);
bool UnrollWindowFromIcon(IntPtr windowHandle);
bool ok = BFS.Window.UnrollWindowFromIcon(windowHandle);
bool UnrollWindowFromTitleBar(IntPtr windowHandle);
bool ok = BFS.Window.UnrollWindowFromTitleBar(windowHandle);