Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#934 closed Bug (Fixed)

MouseGetCursor consumes left mouse clicks

Reported by: martin Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: MouseGetCursor Cc:


if a script continually calls MouseGetCursor() then double clicking in other applications can be disabled.
This thread has three reports of the problem, and this example demonstrates. While the script is running double clicking on a desktop shortcut is liable to fail.

$g = GUICreate("check mousegetcursor")
while GUIGetMsg()<> -3

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version:

comment:2 Changed 14 years ago by anonymous

Sorry - still occurs when using autoIt COM control - I downloaded
I went ahead and made my own COM .dll using VBExpress2008 (had to register it using .NET regasm.exe and gacutil.exe to make it COM visible). And it works *great* with no double click cancelling - but it doesn't return the same set of numbers you have (e.g. Arrow returns 65553).

Please see if the following Class code helps you to make the AutoIt one work.

Public Class cursorData

Public Declare Function GetCursorInfo Lib "user32.dll" (ByRef pc As CURSORINFO) As Integer


Dim cbsize As Integer
Dim flags As Integer
Dim hCursor As Integer
Dim p As PointAPI

End Structure

Structure PointAPI

Dim X As Integer
Dim Y As Integer

End Structure

Public Function cursorType()

ff.cbsize = System.Runtime.InteropServices.Marshal.SizeOf(GetType(CURSORINFO))
cursorType = ff.hCursor

End Function

End Class

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.