Modify

#254 closed Bug (Fixed)

GUIGetCursorInfo does not return the correct primary/secondary down info

Reported by: paulpmeier Owned by: Jon
Milestone: 3.2.13.0 Component: AutoIt
Version: 3.2.11.12 Severity: None
Keywords: Cc:

Description

Hello Jon,

i have no permission to reopen a fixed bug report, so i open a new.

I runned this script with AutoIt 3.2.12.0-rc1.
The mouse buttons are swapped in the control panel.

If only one button is pressed down GUIGetCursorInfo() returns 1 for BOTH buttons.

Dim $CursorInfo[5]
$MouseButtonsSwapped = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")

$hWnd = GUICreate("Press a mouse button", 320, 90)
$hLblSwapped = GUICtrlCreateLabel("Mouse buttons swapped: " & $MouseButtonsSwapped, 10, 10, 200, 20)
$hLblPrimary = GUICtrlCreateLabel("Primary down: ", 10, 40, 200, 20)
$hLblSecundary = GUICtrlCreateLabel("Secondary down: ", 10, 60, 200, 20)
GUISetState(@SW_SHOW)

While GUIGetMsg() <> -3
	$MouseButtonsSwapped = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")
	GUICtrlSetData($hLblSwapped, "Mouse buttons swapped: " & $MouseButtonsSwapped)
	$CursorInfo = GUIGetCursorInfo($hWnd)
	GUICtrlSetData($hLblPrimary, "Primary down: " & $CursorInfo[2])
	GUICtrlSetData($hLblSecundary, "Secondary down: " & $CursorInfo[3])
	Sleep(50)
WEnd

What do i wrong?

Paul

Attachments (0)

Change History (3)

comment:1 by Jon, on May 10, 2008 at 11:39:39 AM

Milestone: 3.2.11.13
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.11.13

comment:2 by Jon, on May 10, 2008 at 12:58:06 PM

Fixed in next release candidate, hopefully.

comment:3 by Valik, on Oct 30, 2008 at 3:08:38 AM

Milestone: 3.2.11.133.2.13.0

Fixing wrong milestone.

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.