AutoHotkey Community

It is currently May 26th, 2012, 9:19 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: ~LButton Up annoyances
PostPosted: July 24th, 2005, 4:52 am 
Offline

Joined: July 24th, 2005, 4:29 am
Posts: 27
Location: Rheinland
Code:
~LButton Up::
If (WinActive("Lister -") AND A_Cursor="IBeam")
  Send, {RBUTTON}k
Return


Several strange annoyances in scripts with ~LButton Up hotkey:
1. Double click doesn't work anymore, or let's say very rarely.
2. Marking text with Shift-Button (in Notepad for example) works but after releasing the Shift Button text is *still* marked when moving the mouse. This problem disappears when using *~LButton Up::!

Are these problems related to
Quote:
1.0.36.07 - July 18, 2005
Fixed tilde key-up hotkeys for Win/Alt such as "~LWin up::".
?

I hope that I have not overseen anything and this is really a bug. If not please give me a hint, thanks. ;)

Icfu


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 24th, 2005, 12:38 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Icfu wrote:
1. Double click doesn't work anymore, or let's say very rarely.
I think this is due to the following issue: "If A_Cursor's contents are fetched repeatedly at a high frequency (i.e. every 500 ms or faster), it will probably disrupt the user's ability to double-click. There is no known workaround."

I know you're not calling it with high frequency in this case, but you are calling it immediately after the first click of a double click, which is enough to disrupt it I think.

Quote:
2. ... This problem disappears when using *~LButton Up::!
The asterisk is needed to make the hotkey fire when you're holding down Shift or another modifier key. If this is not the point you're trying to make, I could use clarification.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 24th, 2005, 1:57 pm 
Offline

Joined: July 24th, 2005, 4:29 am
Posts: 27
Location: Rheinland
Quote:
I think this is due to the following issue: "If A_Cursor's contents are fetched repeatedly at a high frequency (i.e. every 500 ms or faster), it will probably disrupt the user's ability to double-click. There is no known workaround."

I know you're not calling it with high frequency in this case, but you are calling it immediately after the first click of a double click, which is enough to disrupt it I think.

You are right with A_Cursor, a Sleep 250 does the trick and reenables the double click. Problem 1 is solved, thanks. :)

Quote:
The asterisk is needed to make the hotkey fire when you're holding down Shift or another modifier key. If this is not the point you're trying to make, I could use clarification.

The point is that the hotkey should not fire on Shift-Lbutton Up when there is no asterisk but it does. Well, it doesn't really fire but seems to generate a MouseDown event or eat the Mouse Up event. When the asterisk is added Notepad and the like have no problems with Shift-marking anymore.

Try these scripts, press mouse button a few times in Notepad and then try to mark using Shift-LeftClick. Then release the mouse button and the Shift key afterwards and move the mouse around:

Problematic script, text is marked as if the left mouse button is still pressed:
Code:
~LButton Up::
Sleep 250
IfWinActive, ahk_class Notepad
  Send, test{Enter}
Return


Unproblematic script:
Code:
*~LButton Up::
Sleep 250
IfWinActive, ahk_class Notepad
  Send, test{Enter}
Return


Do you see the difference?

Icfu


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2005, 1:08 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Icfu wrote:
The point is that the hotkey should not fire on Shift-Lbutton Up when there is no asterisk but it does.
Thanks for explaining it so well. This is definitely a bug and it has been fixed in v1.0.37.02.

Thanks for reporting it.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2005, 6:31 pm 
Offline

Joined: July 24th, 2005, 4:29 am
Posts: 27
Location: Rheinland
Thanks very much for the fix, works fine now. :)

Icfu


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group