It does return correct information however in Windows XP (at least on my XP machine it does).
I'm using AutoIt3 version 3.1.1.64.
Run this program to see...
#include <GUIConstants.au3> GUICreate("Mouse Test", 400, 400) $b=GUICtrlCreateLabel ("0", 10, 10,50) $c=GUICtrlCreateLabel ("0", 10, 30,50) $d=GUICtrlCreateLabel ("0", 10, 50,50) $e=GUICtrlCreateLabel ("0", 10, 70,50) $f=GUICtrlCreateLabel ("0", 10, 90,50) $button = GUICtrlCreateButton("Button", 10, 110, 100, 20) $primary = GUICtrlCreateLabel("Primary", 40, 180, 80, 20) $secondary = GUICtrlCreateLabel("Secondary", 200, 180, 80, 20) GUISetState() ; Run the GUI until the dialog is closed While 1 GetPos() $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd Func GetPos() $a=GUIGetCursorInfo() GUIctrlSetData($b,$a[0]) GUIctrlSetData($c,$a[1]) GUICtrlSetData($d,$a[2]) GUICtrlSetData($e,$a[3]) GUICtrlSetData($f,$a[4]) If $a[2] Then GUICtrlSetBkColor($primary,0xFF0000) Else GUICtrlSetBkColor($primary,0xF1F1EC) EndIf If $a[3] Then GUICtrlSetBkColor($secondary,0xFF0000) Else GUICtrlSetBkColor($secondary,0xF1F1EC) EndIf EndFunc














