| View previous topic :: View next topic |
| Author |
Message |
gechu Guest
|
Posted: Tue Feb 26, 2008 9:55 am Post subject: |
|
|
Dammit! Now I have to understand these scripts to be able to change them!
/ Script kiddie Erik |
|
| Back to top |
|
 |
Jag02
Joined: 16 Apr 2008 Posts: 43
|
Posted: Sun May 04, 2008 6:07 am Post subject: Windows explorer refresh gesture and diagonal gestures? |
|
|
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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Sun May 04, 2008 6:38 am Post subject: Re: Windows explorer refresh gesture and diagonal gestures? |
|
|
| 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 |
|
 |
Jag02
Joined: 16 Apr 2008 Posts: 43
|
Posted: Mon May 05, 2008 9:39 am Post subject: |
|
|
This command in the Gestures.ini file does not work;
Gesture_L_U = !{Up}
Please help. |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Mon May 05, 2008 11:43 am Post subject: |
|
|
| 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 |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 372
|
Posted: Sat Aug 16, 2008 9:29 am Post subject: |
|
|
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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Sat Aug 16, 2008 11:47 am Post subject: |
|
|
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 |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 372
|
Posted: Sat Aug 16, 2008 1:53 pm Post subject: |
|
|
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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Sat Aug 16, 2008 10:43 pm Post subject: |
|
|
| 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 |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 372
|
Posted: Sun Aug 17, 2008 10:54 am Post subject: |
|
|
| 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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Sun Aug 17, 2008 12:06 pm Post subject: |
|
|
| 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.
- Define Prefix1_L, Prefix2_L, Prefix3_L, etc.
- Find the line mentioned in my previous posts, where the variable named 'gesture' is assigned.
- 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.
| 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 |
|
 |
|