• Computers
  • Is there a mouse-home command that quickly locate mouse pointer in multi screens setup ? (p.2)
2016/11/22 00:05:36
tomixornot
DrLumen
I move the mouse in large circles until I see the pointer fly by in one of the monitors.


Yes :)

..except those time when I shut off 2 monitors when not operating DAW.
2016/11/22 00:32:05
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
2016/11/22 02:54:29
tomixornot
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
---
12
© 2024 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account