AutoIt Forums: GUIGetCursorInfo bug? - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

GUIGetCursorInfo bug? FIXED

#1 User is offline   livewire 

  • Spammer!
  • PipPipPip
  • Group: Full Members
  • Posts: 208
  • Joined: 28-August 04
  • Location:Orlando, FL

Posted 27 July 2005 - 08:46 PM

GUIGetCursorInfo does not return the correct primary/secondary down info in Windows 2000 if you switch primary/secondary mouse buttons via the Control Panel (for left handers).

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...

[ code='text' ]    ( ExpandCollapse - Popup )
#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

1

#2 User is offline   Holger 

  • AutoIt Spammer
  • Icon
  • Group: Developers(Dev)
  • Posts: 1,382
  • Joined: 22-March 04
  • Gender:Male
  • Location:Munich,Germany

Posted 28 July 2005 - 11:19 PM

Yep, a bug.
I think it's a kind of misunderstanding in the function.
I will ask jpm for more info cause I found something through testing and googeling ;)
Regards
Holger
1

#3 User is offline   Holger 

  • AutoIt Spammer
  • Icon
  • Group: Developers(Dev)
  • Posts: 1,382
  • Joined: 22-March 04
  • Gender:Male
  • Location:Munich,Germany

Posted 15 August 2005 - 11:56 PM

Is this bug really not solved? - in my opinion it is, so we should close this topic!?
0

#4 User is offline   w0uter 

  • resreveR nA
  • PipPipPipPipPipPipPip
  • Group: Full Members
  • Posts: 2,262
  • Joined: 11-January 05
  • Location:The Netherlands

Posted 16 August 2005 - 01:18 AM

i say close it. if the bug still exist someone will just make a new topic ;)
1

#5 User is offline   livewire 

  • Spammer!
  • PipPipPip
  • Group: Full Members
  • Posts: 208
  • Joined: 28-August 04
  • Location:Orlando, FL

Posted 18 August 2005 - 06:44 PM

This bug appears to have been fixed. This topic can be closed.

-Livewire
1

#6 User is offline   paulpmeier 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 10
  • Joined: 08-June 07

Posted 06 May 2008 - 08:27 PM

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.
1

#7 User is offline   Jon 

  • Here is Sub-zero. Now just plain zero.
  • Icon
  • Group: Admin
  • Posts: 8,101
  • Joined: 02-December 03
  • Gender:Male

Posted 08 May 2008 - 03:55 PM

View Postpaulpmeier, on May 6 2008, 08:27 PM, said:

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.

Fixed in next beta. I have no idea why the code that fixed the original problem got removed...
1

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users