Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

MGR v0.9.5


  • Please log in to reply
209 replies to this topic
TheFonz
  • Members
  • 54 posts
  • Last active: Nov 29 2016 11:48 PM
  • Joined: 01 May 2013

Thanks for the post R3gX, I was able to run sample.ahk without any error.

I am still a little unsure what help file you mean I should be reading. I cannot find one of the first post.

I am trying to have only 1 gesture work in Chrome and the rest I want to be handled by Chromes Gesture Extension is this easily achievable?

I then want to be able to configure gestures for the rest of the operating system applications.

Thanks again!

_Fonz



R3gX
  • Members
  • 307 posts
  • Last active: Dec 29 2013 04:50 PM
  • Joined: 28 Feb 2011

 

I am still a little unsure what help file you mean I should be reading. I cannot find one of the first post.

Generally, the help file is the autohotkey's help file (AutoHotkey.chm).

Sorry for the lack of precision!

 

 

I am trying to have only 1 gesture work in Chrome

To define Chrome's mgr gestures, you should write this in the gestures.ini

[chrome.exe]
gesture = command ; description

signature.png
Previously known as TomXIII
AutoHotkey version : 1.1.10


TheFonz
  • Members
  • 54 posts
  • Last active: Nov 29 2016 11:48 PM
  • Joined: 01 May 2013

 

Generally, the help file is the autohotkey's help file (AutoHotkey.chm).

Sorry for the lack of precision!

 

To define Chrome's mgr gestures, you should write this in the gestures.ini

[chrome.exe]
gesture = command ; description

Thanks again.

I have finally got it working and have figured out the sample.ahk & gestures.ini files.

However, my only issue now is I only want to have the gestures work in specific apps I specify. Meaning if I drag whilst holding the right mouse button in any other app that is not specified in gestures.ini it should act as normal. Is this possible?  This is my gestures.ini at the moment:

[Global]
U      = Win_Last()        ; Last window
#U     = Win_Maximize()    ; Maximize/Restore the window
#UR    = Win_Close()       ; Close the window
#U-D   = Win_AlwaysOnTop() ; AlwaysOnTop
#L-D-R = Win_GetClass()    ; Get window's class

;LB & RB = Msg("Global > LB & RB")
;RB & LB = Msg("Global > RB & LB")
;RB & WU = Msg("Global > RB & WU")
;RB & WD = Label_Test

;R@3      = Win_Next()       ; Next window
;U@3      = Win_Maximize()   ; Maximize/Restore the window
;RB & LB@1 = Msg("Global > RB & LB - Rocker gesture @ Area 1")

;HShake   = Msg("Global > Horizontal Shake Gesture")
;VShake   = Msg("Global > Vertical Shake Gesture")
;DShake   = Msg("Global > Diagonal Shake Gesture")

;HShake@3 = Msg("Global > Horizontal Shake Gesture @ Area 3")
#HShake@5 = Msg("Global > # + Horizontal Shake Gesture @ Area 5")
#LB & RB@4 = Msg("Global > # + Rocker gesture @ Area 4")

[notepad.exe]
D = ^o ; Open

[notepad.exe:#32770]
D = {Enter} ; Enter

[chrome.exe]
;R     = {Browser_Forward} ; Forward
;L     = {Browser_Back}    ; Back
;UR    = ^t                ; New tab
;UL    = ^w                ; Close tab
;DL    = ^+{Tab}           ; Previous tab
;D     = {Browser_Refresh} ; Refresh
;DR    = ^{Tab}            ; Next tab
;DL-UL = ^+{Tab}^w         ; Close the previous tab
LB & RB = {End} ; Bottom of Page
RB & LB = {Home}    ; Top Of Page

[firefox.exe | iexplore.exe]
R     = {Browser_Forward} ; Forward
L     = {Browser_Back}    ; Back
UR    = ^t                ; New tab
UL    = ^w                ; Close tab
DL    = ^+{Tab}           ; Previous tab
D     = {Browser_Refresh} ; Refresh
DR    = ^{Tab}            ; Next tab
DL-UL = ^+{Tab}^w         ; Close the previous tab

[Explorer.EXE]
R       = {Browser_Forward} ; Forward
UR      = !{Enter}          ; Properties
L       = {Browser_Back}    ; Back
L-U     = !{Up}             ; Parent folder
DL      = ^x                ; Cut
D       = ^c                ; Copy
DR      = ^v                ; Paste
D-L     = {Enter}           ; Enter
D-U     = {Ctrl Down}       ; Ctrl Down
U-D     = {Ctrl Up}         ; Ctrl Up

LB & RB = {Browser_Forward} ; Forward
RB & LB = {Browser_Back}    ; Back 

[xplorer2_64.exe]

Note: I do not want gestures to be activated in xplorer2_64.exe, just yet.

I have commented out all the global gestures to no avail. Any help would be apprecaited.

 

Cheers again!!

_Fonz



Carrozza
  • Members
  • 214 posts
  • Last active: Mar 02 2016 09:51 AM
  • Joined: 05 Jul 2009

Ohohoh, looks who's coding now!

 

Ciao R3gX, I missed you.

 

Nice to see that you keep improving MGR gesture script. To be honest I discontinued usage when Windows 8 broke the "still-right-button = Ctrl+Alt+Tab" feature. I am so angry!

 

Well, keep up the good work, I'll keep following this thread!



R3gX
  • Members
  • 307 posts
  • Last active: Dec 29 2013 04:50 PM
  • Joined: 28 Feb 2011

Windows 8

What the f**k !!! Do you really use this version ?!

I know that everyone does what he wants but I am surprised!

At least I hope that you like it ?!


signature.png
Previously known as TomXIII
AutoHotkey version : 1.1.10


Carrozza
  • Members
  • 214 posts
  • Last active: Mar 02 2016 09:51 AM
  • Joined: 05 Jul 2009

Nope, I don't like Windows 8 but I'm forced to use it because it's on my company laptop.

Let's hope that 8.1 will bring some "seveness", like Start menu, boot to desktop, and better Autohotkey compatibility, too.



R3gX
  • Members
  • 307 posts
  • Last active: Dec 29 2013 04:50 PM
  • Joined: 28 Feb 2011

New update : v0.9.5 (see first post for change log)

Download on GitHub : https://github.com/R3gX/MGR


signature.png
Previously known as TomXIII
AutoHotkey version : 1.1.10


R3gX
  • Members
  • 307 posts
  • Last active: Dec 29 2013 04:50 PM
  • Joined: 28 Feb 2011

@all : The v0.9.5 has important modifications on 'gestures.ini'.

• The 'Global' section is now renamed in 'Default'.

This means that if a gesture is not set for the active application but is set in the 'Default' section, the triggered command will be the command set in the 'Default' section.

If you don't want default gestures, simply delete the 'Default' section.

• A new section was added : 'Master'. This section has the priority over all others sections.

 

Here is a summary of priorities* for the sections : Master > Process:Title > Process:Class > Process > Default

For the gestures : Gesture@Area > Gesture

* :    > means 'has priority over'

 

 

@TheFonz :

Meaning if I drag whilst holding the right mouse button in any other app that is not specified in gestures.ini it should act as normal. Is this possible?

 

Please, read the little text above to have explanations on how the sections are used.
I hope it will help you. Don't hesitate if it isn't clear enough!

signature.png
Previously known as TomXIII
AutoHotkey version : 1.1.10


TheFonz
  • Members
  • 54 posts
  • Last active: Nov 29 2016 11:48 PM
  • Joined: 01 May 2013

Please, read the little text above to have explanations on how the sections are used.

I hope it will help you. Don't hesitate if it isn't clear enough!

 

Thanks for the explanation though it still does not work for me for some reason.

I only have a couple of *.exes listed and do not have default or master listed. I even removed Chrome.exe and the tooltip for the gestures are still coming up.

I ran the sample.ahk as an administrator and still behaved the same way. 

I am reloading the sample.ahk file after each editing of the gestures.ini file.

Does that make sense?



R3gX
  • Members
  • 307 posts
  • Last active: Dec 29 2013 04:50 PM
  • Joined: 28 Feb 2011
MGR is set to run continuously as the configuration file is present or not, as it contains preferences for certain applications or not.
So for now it is normal in view of its current configuration.
But it is true that when you think about it, this makes no sense!
I'll try to fix that. Maybe not now, but I'll do it!

 

In the meantime, the only thing I can advise you is to click the icon in the taskbar, it will suspend the script. Re-click to activate MGR.

Sorry for this trouble!


signature.png
Previously known as TomXIII
AutoHotkey version : 1.1.10


Carrozza
  • Members
  • 214 posts
  • Last active: Mar 02 2016 09:51 AM
  • Joined: 05 Jul 2009

Just a quick shout-out to say that after some months working without MGR, now I badly miss it and will try the recent 0.95 release in the next days.

Probably I'll nag this thread with little customization questions, please bear with me.

Ciao!



Carrozza
  • Members
  • 214 posts
  • Last active: Mar 02 2016 09:51 AM
  • Joined: 05 Jul 2009

Hi folks,

I don't seem to get rocker gestures working at all. This is my current "gestures.ini" file, and wheel gestures work just right:

[Default]
RB-WU	= !+{ESC}			; Previous app
RB-WD	= !{ESC}			; Next app
RB-LB	= !{F4}				; Close app
U-L		= ^x				; Cut
U		= ^c				; Copy
UR		= ^{Tab}			; Next Tab
UL		= ^+{Tab}			; Previous Tab
D		= ^v				; Paste
DL		= ^w				; Close Tab

[chrome.exe | iexplore.exe]
R		= !+b				; Quick Bookmarks
L		= {Browser_Back}	; Back
U-R		= ^t				; New Tab
DR		= ^j 				; Downloads
DL-UL	= ^+{Tab}^w			; Close Previous Tab

[Explorer.EXE]
R		= {Browser_Forward}	; Forward
DR		= !{Enter}			; Properties
L		= {Browser_Back}	; Back
L-U		= !{Up}				; Parent folder

Any idea why rocker gesture LeftButton+RightButton don't work?



Carrozza
  • Members
  • 214 posts
  • Last active: Mar 02 2016 09:51 AM
  • Joined: 05 Jul 2009

MGR is up and rocking as always here.

 

The only issue I had a couple of times is when the gesture recognition sequence hung, keeping the gesture tooltip updating itself and growing without limits.

 

As a side note, thanks to Lexicos' help in this thread I managed to get the Alt-tab functionality back in Windows 8.

 

Still hoping for some help on RB-LB rocker gesture issue.

 

Cheers!



Carrozza
  • Members
  • 214 posts
  • Last active: Mar 02 2016 09:51 AM
  • Joined: 05 Jul 2009

Hi all, just wanted to share a little usability improvement I made for a better MGR experience: use an hotkey to enable and disable gestures, to get back the "normal" right-mouse-button when needed (I use to disable MGR in Blender and Photoshop, or games).

XButton1::
  If Gestures=0
     {
     Gestures+=1
	 Hotkey,	*RButton,  mgr_MonitorRButton, On
	 Hotkey,	#RButton,  mgr_MonitorRButton, On
	 MsgBox,64,AutoHotkey Information,Mouse Gestures ON,1
     }
  else
     {
     Gestures-=1
	 Hotkey,	*RButton,  mgr_MonitorRButton, Off
	 Hotkey,	#RButton,  mgr_MonitorRButton, Off
	 MsgBox,64,AutoHotkey Information,Mouse Gestures OFF,1
     }
Return

Cheers!



Baal
  • Members
  • 81 posts
  • Last active: Apr 15 2016 04:38 PM
  • Joined: 04 Jun 2014
EDIT: Somehow this script stops HoverScroll() script, which accelerates scroll wheel.