Jump to content


 

GUIGetCursorInfo bug?


6 replies to this topic

#1 livewire

    Spammer!

  • Full Members
  • PipPipPip
  • 208 posts
  • 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




#2 Holger

    AutoIt Spammer

  • Developers (Dev)
  • 1,384 posts
  • 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

#3 Holger

    AutoIt Spammer

  • Developers (Dev)
  • 1,384 posts
  • 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!?

#4 w0uter

    resreveR nA

  • Full Members
  • PipPipPipPipPipPipPip
  • 2,262 posts
  • 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 ;)
My UDF's:

;mem stuff
_Mem
;ftp stuff
_FTP ( OLD )
;inet stuff
_INetGetSource ( OLD )
_INetGetImage
_INetBrowse ( Collection )
_EncodeUrl
_NetStat
_Google
;random stuff
_iPixelSearch
_DiceRoll

#5 livewire

    Spammer!

  • Full Members
  • PipPipPip
  • 208 posts
  • Location:Orlando, FL

Posted 18 August 2005 - 06:44 PM

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

-Livewire

#6 paulpmeier

    Member

  • Full Members
  • Pip
  • 12 posts

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.

#7 Jon

    I think I heard a shot

  • Admin
  • 9,073 posts
  • Gender:Male
  • Location:Birmingham, UK

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 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users