 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
waveform
Joined: 23 Apr 2007 Posts: 21
|
Posted: Sat Sep 19, 2009 8:57 am Post subject: Strange behaviour in Firefox 3.5.x |
|
|
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.
Cheers! |
|
| Back to top |
|
 |
AnttiV
Joined: 14 Aug 2009 Posts: 237 Location: Finland
|
Posted: Sat Sep 19, 2009 11:07 am Post subject: |
|
|
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 |
|
 |
waveform
Joined: 23 Apr 2007 Posts: 21
|
Posted: Sat Sep 19, 2009 11:14 am Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|