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 

solved: mouse gestures | solved: unwanted right click

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



Joined: 26 Sep 2007
Posts: 44

PostPosted: Fri Jun 13, 2008 10:14 pm    Post subject: solved: mouse gestures | solved: unwanted right click Reply with quote

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
View user's profile Send private message
heresy



Joined: 11 Mar 2008
Posts: 291

PostPosted: Fri Jun 13, 2008 10:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
TOTAL



Joined: 26 Sep 2007
Posts: 44

PostPosted: Fri Jun 13, 2008 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2558
Location: Australia, Qld

PostPosted: Fri Jun 13, 2008 10:49 pm    Post subject: Reply with quote

~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:
Code:
Send !{Left}
Back to top
View user's profile Send private message
TOTAL



Joined: 26 Sep 2007
Posts: 44

PostPosted: Fri Jun 13, 2008 10:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
YMP



Joined: 23 Dec 2006
Posts: 266
Location: Russia

PostPosted: Sat Jun 14, 2008 3:48 pm    Post subject: Reply with quote

What about this?
Code:

RButton & LButton:: send {Browser_Back}
RButton Up:: Click Right
Back to top
View user's profile Send private message
TOTAL



Joined: 26 Sep 2007
Posts: 44

PostPosted: Sat Jun 14, 2008 8:06 pm    Post subject: Reply with quote

Yes. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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