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 

Strange behaviour in Firefox 3.5.x

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
waveform



Joined: 23 Apr 2007
Posts: 21

PostPosted: Sat Sep 19, 2009 8:57 am    Post subject: Strange behaviour in Firefox 3.5.x Reply with quote

I've never been adverse to a bit of strange behaviour now and then, but this is of the confounding and puzzling sort.

AHK has always worked perfectly well in Firefox, but since I upgraded to Firefox 3.5.x, I can't seem to get this script to work:
Code:
; Simulate middle click
~LButton & RButton::MouseClick, Middle
~RButton & LButton::MouseClick, Middle

All it does is simulate a middle mouse click when clicking both left and right buttons together. Works a charm in every app except FF3.5.x, which is not only reacting to the middle-click generated by AHK, but it also reacts to the left-click.

So for example, if I "middle click" (left+right click) on a hyperlink, it opens in a new tab, as it should with a middle click, but also opens in the original tab, as if I left-clicked on it as well. Firefox 2 doesn't do this, nor does any other browser.

So the question is, can the script be modified somehow to stop FF3 seeing the left click at all? Or is the problem perhaps in the way FF3 polls mouse events?

I'd love to know if anyone else can verify this behaviour too, so I know it's not just me. Smile

Cheers!
Back to top
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Sat Sep 19, 2009 11:07 am    Post subject: Reply with quote

What I get from this, is that the new FF is infact the only thing that works as it should, and the rest do not.

You are explicitly telling AHK to pass on the original click (with the "~" prefix).
Remove that, and FF3.5 should work as you want.

Also, why do you define L+R button twice? Doesn't it work if you only have it L+R or does it really need the R+L definition too?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
waveform



Joined: 23 Apr 2007
Posts: 21

PostPosted: Sat Sep 19, 2009 11:14 am    Post subject: Reply with quote

If I remove the ~ then Windows doesn't ever receive a left-click at all, because the event is eaten by AHK. With the ~ in place, the left-click event works as normal.

So I think I get the idea.. I need to make AHK pass the left-click as normal, but "eat" it only when it's combined with a right-click at the same time.

How is that done?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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