Is there a Win7 shortcut to position mouse in center of primary screen?

Combining a few of the above ideas, I came up with this script. It's tested and working.

CentreCursor.ps1

[System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") | out-null
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | out-null
$bounds = [System.Windows.Forms.Screen]::PrimaryScreen.Bounds
$center = $bounds.Location
$center.X += $bounds.Width / 2
$center.Y += $bounds.Height / 2
[System.Windows.Forms.Cursor]::Position = $center

Save this script in a convenient folder, and create a shortcut in your All Programs menu:

Target: %systemroot%\system32\windowspowershell\v1.0\powershell.exe -ExecutionPolicy RemoteSigned -File "C:\Path To Script\CentreCursor.ps1"

Shortcut key: Ctrl + Alt + Shift + C

Run: Minimized

Now whenever you press Ctrl+Alt+Shift+C, your cursor will return home.

Edit: While it doesn't seem to be a requirement on my computer, I've added Patrick's suggestion to the shortcut.


Turning on "Show location of pointer when I press the CTRL key" is one option. This is especially useful if it is currently changed to some custom mouse pointer by an application, like a paint brush, that is harder to see.

enter image description here


You can do this fairly easily with a software program called UltraMon.

In the options section there is a place to specify HotKeys. You can see screenshot where I've setup a hot key for Crtl + Shift + C

enter image description here