AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A_Cursor Bug

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Thu Mar 10, 2005 12:24 pm    Post subject: A_Cursor Bug Reply with quote

Hi,

If I use the following simple script (only for demonstration), a double-click will not be recognized anymore.

Code:
~LButton::
   a = %A_Cursor%
return


Tekl
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Mar 10, 2005 1:10 pm    Post subject: Reply with quote

Thanks. It turns out that A_CaretX/Y and A_Cursor require a special method, like ControlGetFocus, to get the information. If this method is repeated at a high frequency (i.e. every 500 ms or faster, or assigned directly to the left mouse button), it disrupts the user's ability to double-click. There is no known workaround other than to fetch the variable's contents less often.

I've updated the documentation to reflect this.
Back to top
View user's profile Send private message Send e-mail
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Thu Mar 10, 2005 2:20 pm    Post subject: Reply with quote

Hi Chris,

maybe this workaround may help someone:

Code:

RegRead,DoubleClickSpeed,HKCU,Control Panel\Mouse,DoubleClickSpeed
~LButton::
   if ( A_TimeSincePriorHotkey > DoubleClickSpeed or A_PriorHotkey <> A_ThisHotkey )
      a = %A_Cursor%
return


Tekl
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group