| View previous topic :: View next topic |
| Author |
Message |
TOTAL
Joined: 26 Sep 2007 Posts: 44
|
Posted: Fri Jun 13, 2008 10:14 pm Post subject: solved: mouse gestures | solved: unwanted right click |
|
|
I want to have basic Opera's mouse gesture functionality in other programs too, that is
replace
leftbutton+rightbutton
with
alt+left
and rightbutton + leftbutton
with
alt+right
This will work in opera, firefox, windows and internet explorer.
And I am stuck at syntax.
| Code: | | RButton & LButton:: send {Alt}+{Left} |
1. does not work as it should
2. blocks rightbutton alone functionality
Please help me just with this instance, the rest I will deduce therewith.
T
Last edited by TOTAL on Sat Jun 14, 2008 5:01 pm; edited 2 times in total |
|
| Back to top |
|
 |
heresy
Joined: 11 Mar 2008 Posts: 291
|
Posted: Fri Jun 13, 2008 10:18 pm Post subject: |
|
|
| Code: | | ~RButton & LButton:: send {Alt}{Left} |
| Mighty Help wrote: | ~ Prefix for hotkey
When the hotkey fires, its key's native function will not be blocked (hidden from the system). In both of the below examples, the user's click of the mouse button will be sent to the active window:
~RButton::MsgBox You clicked the right mouse button.
~RButton & C::MsgBox You pressed C while holding down the right mouse button.Notes: 1) Unlike the other prefix symbols, the tilde prefix is allowed to be present on some of a hotkey's variants but absent on others; 2) Special hotkeys that are substitutes for alt-tab always ignore the tilde prefix; 3) The tilde prefix is ignored on Windows 95/98/ME
|
_________________ Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com |
|
| Back to top |
|
 |
TOTAL
Joined: 26 Sep 2007 Posts: 44
|
Posted: Fri Jun 13, 2008 10:27 pm Post subject: |
|
|
Thanks.
this ` does it, but from the behaviour in windows explorer I guess, send {Alt} {Tab}, sends them one after another.
I think so because instead of moving back to the previous page, "File" in the upper row is highlighted (as when you press alt) and the highlight changes immediately to Help (as when you press left cursor).
How to send a simultaneous combination Alt+Left?
| Code: |
~RButton & LButton::
send {Alt down}
send {Left}
send {Alt up}
return |
still does not work. It sends Alt+Left in PSPad, but does not work as expected in Windows Explorer.
Besides, the right click menu should not be activated if right click is accompanied by left click. |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2558 Location: Australia, Qld
|
Posted: Fri Jun 13, 2008 10:49 pm Post subject: |
|
|
~RButton & LButton passes the right-click through, but not the left click. ~RButton & ~LButton would pass both through.
| Code: | send {Alt down}
send {Left}
send {Alt up} | This works for me in Vista. The more typical way would be:
|
|
| Back to top |
|
 |
TOTAL
Joined: 26 Sep 2007 Posts: 44
|
Posted: Fri Jun 13, 2008 10:59 pm Post subject: |
|
|
Here is a solution
| Code: | | ~RButton & LButton:: send {Browser_Back} |
It works in opera, Firefox and Windows explorer, but there is still the issue with right click menu popping up.
_____________________________________________________
If right click is not together with left click, fair enough ` is needed for right click to work.
But if they are clicked together, you don't want the Right Click Menu to pop up after this mouse gesture. How to prevent it?
Please help. |
|
| Back to top |
|
 |
YMP
Joined: 23 Dec 2006 Posts: 266 Location: Russia
|
Posted: Sat Jun 14, 2008 3:48 pm Post subject: |
|
|
What about this?
| Code: |
RButton & LButton:: send {Browser_Back}
RButton Up:: Click Right
|
|
|
| Back to top |
|
 |
TOTAL
Joined: 26 Sep 2007 Posts: 44
|
Posted: Sat Jun 14, 2008 8:06 pm Post subject: |
|
|
| Yes. Thanks! |
|
| Back to top |
|
 |
|