Code: Select all
^+F12::
MouseMove 100, 100
Return
Code: Select all
^+F12::
MouseMove 100, 100
Return
Code: Select all
Coordmode, Mouse, Screen
Code: Select all
#SingleInstance,Force
CoordMode,Mouse,Screen
*Numpad1::
MouseGetPos,X,Y
Msgbox, Your Cursor is at X: %X% Y: %Y%
return
*Esc::ExitApp
Strahan wrote: ↑21 Jan 2019, 19:57It said "Your cursor is at X: 133 Y: 117". Out of curiosity, I moved it to the right LCD and did it and got "Your cursor is at X: 2028 Y: 194" then the upper, third LCD and got "Your cursor is at X: 2324 Y: -629"
PS: I just got the idea that perhaps it may get confused trying to move left but what about right? I changed my script to MouseMove 2400, -700 then tried it and now every time, no matter where my mouse is on whatever LCD, it jumps to the exact same position on the right upper LCD.
So while it isn't exactly where I'd prefer, it is accomplishing my goal of giving me somewhere to look when I can't find my mouse. Which annoyingly seems to happen often, lol. Thanks!
Use this and try going back to 100,100MouseMove Documentation wrote:The following is an alternate way to move the mouse cursor that may work better in certain multi-monitor configurations:
DllCall("SetCursorPos", int, 100, int, 400) ; The first number is the X-coordinate and the second is the Y (relative to the screen).
I have a 4K monitor with 150% scale and a second monitor with 100% scale. Moving the mouse to the 2nd monitor doesn't work with mousemove function, but, the DllCall function works!
Users browsing this forum: Google [Bot], paul1965 and 56 guests