Opened on May 6, 2008 at 8:33:33 PM
Closed on May 8, 2008 at 3:46:54 PM
Last modified on May 10, 2008 at 6:39:05 AM
#246 closed Bug (Fixed)
GUIGetCursorInfo does not return the correct primary/secondary down info
| Reported by: | paulpmeier | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.2.11.12 | Component: | AutoIt |
| Version: | 3.2.10.0 | Severity: | None |
| Keywords: | Cc: |
Description
http://www.autoitscript.com/forum/index.php?showtopic=14038&hl=GUIGetCursorInfo++primary++secondary
The bug already exists in AutoIt 3.2.10.0 and Windows XP (Sp2).
But only when the CheckBox "Switch primary and secondary buttons" in the Mouse Properties in Control Panel is checked.
Attachments (0)
Change History (2)
comment:1 by , on May 8, 2008 at 3:46:54 PM
| Milestone: | → 3.2.11.12 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
comment:2 by , on May 10, 2008 at 6:39:05 AM
Hello Jon,
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

Fixed in version: 3.2.11.12