| View previous topic :: View next topic |
| Author |
Message |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Thu Mar 10, 2005 12:24 pm Post subject: A_Cursor Bug |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Mar 10, 2005 1:10 pm Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Thu Mar 10, 2005 2:20 pm Post subject: |
|
|
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 |
|
 |
|