scook
Here is an Autohotkey command to position the cursor on the main monitor.
DllCall("SetCursorPos", int, 100, int, 400)
If you are not familiar with Autohotkey and want a program created for a specific hot key give me the keystrokes and I will compile a script for you
Thanks, scook. I'll be reading up more on Autohotkey.
Meanwhile, I'm running this power shell script (copied else where) which seems to work - just not instantly.
The hotkey runs a Windows shortcut file (must be in the desktop) with the following properties :-
target :
%systemroot%\system32\windowspowershell\v1.0\powershell.exe -ExecutionPolicy RemoteSigned -File "C:\My Scripts\CenterMouse.ps1"
start in :
%windir%\system32\windowspowershell\v1.0
short cut key : Ctrl + Alt + M (can be any letter)
----
[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
---