MouseGestureL

Post your working scripts, libraries and tools for AHK v1.1 and older
Netmano
Posts: 58
Joined: 17 Jun 2020, 16:24

Re: MouseGestureL

04 Sep 2020, 08:35

@Pyonkichi
Hey I was finally able to test your suggestion today, it worked just fine
Now I understand how to use Sub Targets, Thanks allot
User avatar
Pyonkichi
Posts: 107
Joined: 16 May 2017, 20:40
Contact:

MouseGestureL.ahk v1.38 and New Plug-in

20 Sep 2020, 04:02

MouseGestureL.ahk v1.38
  • Changed the hook processing of trigger buttons to be executed only on the gesture targets.
  • Added "Always hook trigger buttons" to the Recognition option.
Download:
. .
For details of the changes, refer to the following page:
.
Sleatness
Posts: 1
Joined: 06 Nov 2020, 02:05

Re: MouseGestureL

06 Nov 2020, 02:10

Hey, I'm not super familiar with ahk or this app but I am trying to use it to get by and I'd really appreciate a little help. With a previous browser add on I could set up a gesture to open a link in a new tab, choose if it was in the foreground or background, is that kind of action possible with this? ty
User avatar
Pyonkichi
Posts: 107
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

06 Nov 2020, 19:16

@Sleatness,
If you use Chrome, assign the action "Send, ^{LButton}" to the gesture for background and "Send, ^+{LButton}" for foreground.
Avastgard
Posts: 133
Joined: 30 Sep 2016, 21:54

Re: MouseGestureL

11 Nov 2020, 11:11

I have noticed that recently, I've been having some problems assigning new gestures. Here are the steps I usually follow to reproduce the problem:
  1. Open configuration window
  2. Click Main > Add Gesture
  3. Select one of the unused gestures suggested
  4. Write the Action Script
  5. Click "Apply Action"
  6. Click "OK"
After performing the steps above, the new gesture will not execute the assigned action. The tooltip does not display the assigned action once I execute the gesture. The only way I've found to make it register is by reloading the script through the system tray icon, after which the newly assigned gesture will work.

To be honest, I'm not sure if this has always been the case or if it just started happening after a specific update.

Am I doing something wrong? Is there a way to make the gesture work without having to reload the script?
User avatar
Pyonkichi
Posts: 107
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

14 Nov 2020, 05:05

@Avastgard,
If you launch MG_Edit.ahk directly, you need to restart MGL after closing MG_Edit. If you select Configuration from the tray menu to open the dialog box, you do not need to restart.
Avastgard
Posts: 133
Joined: 30 Sep 2016, 21:54

Re: MouseGestureL

14 Nov 2020, 05:33

Oh, I see. I configured RB_LR to open the configuration menu. I'm not near my computer right now, but I believe I set that gesture to run MG_Edit.ahk. Is there a way to open the configuration menu through a gesture and not run into the same problem of having to reload the script after configuring the changes?
User avatar
Pyonkichi
Posts: 107
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

14 Nov 2020, 20:28

@Avastgard, Just call MG_Edit() function in a gesture action.
Avastgard
Posts: 133
Joined: 30 Sep 2016, 21:54

Re: MouseGestureL

16 Nov 2020, 17:57

@Pyonkichi Thank you!
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

08 Dec 2020, 03:38

@Pyonkichi

Hello,
I am trying to do this in MGL, can someone let me know what I am doing wrong?
I want to do RB_8 and after releasing RB, Have MGL wait for some time (150?) for me to follow it with LB

I have defined the gesture like so
RB_8_LB__
and its action script;

Code: Select all

send, ^{a}
But it does not seem work, Am I missing something?
Thanks
Avastgard
Posts: 133
Joined: 30 Sep 2016, 21:54

Re: MouseGestureL

08 Dec 2020, 03:48

Why do you need to wait to press LB again?
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

08 Dec 2020, 06:10

Its a requirement I really need, I need to release RB but the pressing of LB (within timer) to be considered as a continuation of the same gesture. According to this MGL function it looks to be possible but I dont know what I am doing wrong.
mgl_func.jpg
mgl_func.jpg (25.3 KiB) Viewed 4127 times
User avatar
Pyonkichi
Posts: 107
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

08 Dec 2020, 20:17

@Mika_erdo,
MG_Wait() will not work if LButton is not used as the trigger button. See description of the Double gesture in a help file.
Attachments
help.jpg
help.jpg (52.43 KiB) Viewed 3164 times
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

09 Dec 2020, 22:36

@Pyonkichi
I thank you for pointing me in the right direction, I will thoroughly read the docs now!
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

11 Dec 2020, 10:33

@Pyonkichi
So I've read the docs and I am trying to understand the functions found under script controll. In perticular, function called MG_Wait()
I am trying to recreate the example in the docs but its not working as expected. As i understand it, while holding RB, a single click of LB will perform one action, while a double click of LB will perform another action. The problem I am getting is, both actionscript for RB_LB__ and RB_LB__LB__ get executed one after another, even if I perform a double click of LB within timer limits

To be certain, I have also set option of Time Limit of Double Gesture in recognition tab to 1000
Here is how I have it set up so far.
RB_LB__

Code: Select all

Tooltip, RB_LB__
MG_Wait(1000)
RB_LB__LB__

Code: Select all

tooltip, RB_LB__LB__
What could I be doing wrong? Thank you.
User avatar
Pyonkichi
Posts: 107
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

12 Dec 2020, 02:34

@Mika_erdo, Script for RB_LB__ should be this.

Code: Select all

if (!MG_Timer(-200)) {
	Tooltip, RB_LB__
}
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

12 Dec 2020, 04:51

@Pyonkichi
Hey thanks. I already know how to achieve double click via if (!MG_Timer(-200)) thanks to you sharing it with another user on page 3 of this thread. My goal is to really understand MousegestureL and take full advantage of it . In this case undestanding, the function MG_Wait().


In the documents, the explanation for MG_Wait() is;
mgwait.jpg
mgwait.jpg (72.86 KiB) Viewed 2934 times

I have tried creating an example of this in MGL, It works but the both gestures fire after one another. I tried using MG_Abort() in the root gesture but no luck.

Reading the document passage in the image above, it seems that MG_Wait() does the same thing as your example of

Code: Select all

if (!MG_Timer(-200)) {
	Tooltip, RB_LB__
}
Is that correct? or does it do something else? or maybe MG_Wait() is a depricated function?
User avatar
Pyonkichi
Posts: 107
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

12 Dec 2020, 21:22

@Mika_erdo,
The explanation is correct. "when double-clicking, the single-click action and the double-click action will be executed in turn."
The explanation that you wanted are described in the section "Assign different actions to double-clicking and one-time clicking".

The help file was created by a friend of mine, so to be honest, I don't know everything about the help. But this time, I realized again that the contents written in the help are correct.
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

13 Dec 2020, 02:23

@Pyonkichi
This is great and has made understand where I was going wrong. I understand the what the MG_Wait() function is for now :) I will also take a look at the section you pointed me to. Much appreciated.
Mika_erdo
Posts: 41
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

13 Dec 2020, 17:15

@Pyonkichi
Hi, am having some issue with triggering gestures, I have tried isolating it as much as I can to see where the issue is but no luck.

I created gestures but I cant trigger them and in hints display, MGL shows the gesture is assigned to diffrent stroke directions.
For example, I created gesture RB_8WU__. I cant trigger it and in hints, MGL shows the gesture is configured as RB_88. I tried multiple MGL envoiroments but the issue presists.

I have attached an .ini config file. It has 2 gestures to demonstrate the problem. I would appreciate if you could take a look. Thanks.

MouseGestureL.ini
(1.52 KiB) Downloaded 166 times

Example.jpg
Example.jpg (31.91 KiB) Viewed 2895 times

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: JoeWinograd, TOTAL and 130 guests