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?

Move Mouse Cursor to Center of Primary Monitor

Description
This script will move the mouse cursor to the center of the primary monitor.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
Oct 19, 2015
Date Last Modified
Oct 19, 2015

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run()
	{
		Rectangle primaryMonitorBounds = BFS.Monitor.GetPrimaryMonitorWorkArea();
		BFS.Input.SetMousePosition(primaryMonitorBounds.Width / 2, primaryMonitorBounds.Height / 2);
	}
}