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 

Lex' Mouse Gestures
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
gechu
Guest





PostPosted: Tue Feb 26, 2008 9:55 am    Post subject: Reply with quote

Dammit! Now I have to understand these scripts to be able to change them! Very Happy

/ Script kiddie Erik
Back to top
Jag02



Joined: 16 Apr 2008
Posts: 43

PostPosted: Sun May 04, 2008 6:07 am    Post subject: Windows explorer refresh gesture and diagonal gestures? Reply with quote

Is there a way that a gesture can be added that refreshs the page?

Also like in Avant Browser, can diagonal gestures be added?
Back to top
View user's profile Send private message
Lexikos



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

PostPosted: Sun May 04, 2008 6:38 am    Post subject: Re: Windows explorer refresh gesture and diagonal gestures? Reply with quote

Jag02 wrote:
Is there a way that a gesture can be added that refreshs the page?
Use something like this in Gestures.ini:
Code:
Gesture_R_D_L = {F5}
(Replace R_D_L with whatever.)
Quote:
Also like in Avant Browser, can diagonal gestures be added?
Add the following to Gestures.ini (there may already be ;m_ZoneCount = 4):
Code:
m_ZoneCount = 8
m_InitialZoneCount = 8
I find it is more effective with only 4 zones, since the script does not try to match to an existing gesture.
Back to top
View user's profile Send private message
Jag02



Joined: 16 Apr 2008
Posts: 43

PostPosted: Mon May 05, 2008 9:39 am    Post subject: Reply with quote

This command in the Gestures.ini file does not work;

Gesture_L_U = !{Up}

Please help.
Back to top
View user's profile Send private message
Lexikos



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

PostPosted: Mon May 05, 2008 11:43 am    Post subject: Reply with quote

For what purpose does it not work? Are you using the default settings? If you have diagonals enabled, you have to be careful to draw "left, up" rather than "left, up-left, up."
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 372

PostPosted: Sat Aug 16, 2008 9:29 am    Post subject: Reply with quote

If we would call the current mouse gestures as "global gestures" would it be possible to define also "local gestures" which would layer on top of the global gestures (and disabling their functionality temporarily) dependent on active windows?

e.g. if I would have application A active, it would enable its own set of 8 mouse gestures, then when changing to application B, it would activate its other set of 8 mouse gestures? It should be possible with reloading of Gestures_Default.ahk maybe? Anyone using mouse gestures this way?
Back to top
View user's profile Send private message
Lexikos



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

PostPosted: Sat Aug 16, 2008 11:47 am    Post subject: Reply with quote

Look for the following line:
Code:
gesture := c_GesturePrefix ? c_GesturePrefix : "Gesture"
You may change the prefix based on whatever criteria, i.e. the active window, by adding to this section of code.
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 372

PostPosted: Sat Aug 16, 2008 1:53 pm    Post subject: Reply with quote

I have defined my gestures in "Gestures Default.ahk" which starts like

Code:
; **** DEFINITIONS ****

; prefix for gesture variables/labels
c_GesturePrefix = Gesture
... (global set of gestures)

So can I add those various "local gestures" into the same "Gestures Default.ahk" below by adding another such section with new definitions, like
Code:
; **** DEFINITIONS ****

; prefix for gesture variables/labels
c_GesturePrefix = ApplicationA
... (set of gestures for ApplicationA)

after that again
Code:
; **** DEFINITIONS ****

; prefix for gesture variables/labels
c_GesturePrefix = ApplicationB
... (set of gestures for ApplicationB)
?
Back to top
View user's profile Send private message
Lexikos



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

PostPosted: Sat Aug 16, 2008 10:43 pm    Post subject: Reply with quote

No. Only the last definition will be used. Find the line as in my previous post, and assign gesture a different value based on which window is active.
Back to top
View user's profile Send private message
automaticman



Joined: 27 Oct 2006
Posts: 372

PostPosted: Sun Aug 17, 2008 10:54 am    Post subject: Reply with quote

Lexikos wrote:
No. Only the last definition will be used. Find the line as in my previous post, and assign gesture a different value based on which window is active.
Thanks Lexikos for your hints, I think I got it now... Before I was thinking it would be supported by your Gestures system to define multiple gesture definitions based on prefixes within one single gesture system (Gestures.ahk + Gestures Default.ahk + Gestures.ini) but now I switched my thinking that for multiple gestures definitions based on prefixed I should simply use multiple gesture systems. At least that seems to be the most simplest way? Did I understand everything correctly? If yes, I would want to know how many "gesture systems" others are using simultaniously, just one or also more?
Back to top
View user's profile Send private message
Lexikos



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

PostPosted: Sun Aug 17, 2008 12:06 pm    Post subject: Reply with quote

automaticman wrote:
Before I was thinking it would be supported by your Gestures system to define multiple gesture definitions based on prefixes within one single gesture system (Gestures.ahk + Gestures Default.ahk + Gestures.ini)
It is. Mad
  1. Define Prefix1_L, Prefix2_L, Prefix3_L, etc.
  2. Find the line mentioned in my previous posts, where the variable named 'gesture' is assigned.
  3. Assign 'gesture' whatever prefix value you wish to be active. If you wanted different gestures for the days of the week, you could use:
    Code:
    1_L = Left on Sunday.
    2_L = Left on Monday.
    3_L = Left on Tuesday.
    Code:
    gesture := A_WDay
The mentioned line may exist in multiple places.

By default, c_GesturePrefix is used. Simply changing its value would change what all of the gestures do. This method is not ideal for window-sensitive gestures, however, since you would need to detect when the active window changes or the mouse changes windows and set c_GesturePrefix accordingly.
Quote:
If yes, I would want to know how many "gesture systems" others are using simultaniously, just one or also more?
I am using one script, with only the generic "Gesture" prefix. You may notice that several gestures implemented as subroutines in Gestures Default.ahk are already sensitive to which window is active.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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