﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3182	MouseGetPos may return the wrong value when used with mulitple display screens.	philkryder	Jon	"This problem occurs when there are screens which return a negative value from MouseGetPos. These screens are to the LEFT of the ""main screen.""
That is, the mouse must be at a position returning negative values for x and/or y

In the code below, when the mouse is positioned to the left of the main screen, the mouse will move to the right toward the main screen, one-pixel-at-a-time.
Similarly, if there is a screen which has negative Y values, 
the mouse one pixel at a time toward zero.


Please see:
https://www.autoitscript.com/forum/topic/179346-mouse-moves-when-it-shouldnt/?page=1

{{{
While(True)
    Sleep (1500) 
    Local $x = MouseGetPos(0)
    Local $y = MouseGetPos(1)
    Consolewrite(@CR & ""x  >"" & $x & ""<   y>"" & $y & ""<"")
    MouseMove($x,$y,0)
WEnd

}}}

here are the results on Windows 7 
>""C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe"" ""C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3"" /run /prod /ErrorStdOut /in ""R:\Operations\MacroTools\AutoIT\keepWindowUnlocked\TrackerCode.au3"" /UserParams    
+>15:47:00 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0   Keyboard:00010409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\Pkryder\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Pkryder\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3  input:R:\Operations\MacroTools\AutoIT\keepWindowUnlocked\TrackerCode.au3
+>15:47:00 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\autoit3.exe ""R:\Operations\MacroTools\AutoIT\keepWindowUnlocked\TrackerCode.au3""    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop

x  >-3334<   y>-131<
x  >-3333<   y>-130<
x  >-3332<   y>-129<
x  >-3331<   y>-128<
x  >-3330<   y>-127<
x  >-3329<   y>-126<
x  >-3328<   y>-125<
x  >-3327<   y>-124<
>Process failed to respond; forcing abrupt termination...
>Exit code: 1    Time: 13.53

"	Bug	closed	3.3.15.4	AutoIt	3.3.14.2	None	Fixed	MouseGetPos MouseMove	
