Page 8 of 17
Re: MouseGestureL
Posted: 04 Sep 2020, 08:35
by Netmano
@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
MouseGestureL.ahk v1.38 and New Plug-in
Posted: 20 Sep 2020, 04:02
by Pyonkichi
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:
.
Re: MouseGestureL
Posted: 06 Nov 2020, 02:10
by Sleatness
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
Re: MouseGestureL
Posted: 06 Nov 2020, 19:16
by Pyonkichi
@Sleatness,
If you use Chrome, assign the action "Send, ^{LButton}" to the gesture for background and "Send, ^+{LButton}" for foreground.
Re: MouseGestureL
Posted: 11 Nov 2020, 11:11
by Avastgard
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:
- Open configuration window
- Click Main > Add Gesture
- Select one of the unused gestures suggested
- Write the Action Script
- Click "Apply Action"
- 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?
Re: MouseGestureL
Posted: 14 Nov 2020, 05:05
by Pyonkichi
@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.
Re: MouseGestureL
Posted: 14 Nov 2020, 05:33
by Avastgard
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?
Re: MouseGestureL
Posted: 14 Nov 2020, 20:28
by Pyonkichi
@Avastgard, Just call MG_Edit() function in a gesture action.
Re: MouseGestureL
Posted: 16 Nov 2020, 17:57
by Avastgard
@Pyonkichi Thank you!
Re: MouseGestureL
Posted: 08 Dec 2020, 03:38
by Mika_erdo
@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;
But it does not seem work, Am I missing something?
Thanks
Re: MouseGestureL
Posted: 08 Dec 2020, 03:48
by Avastgard
Why do you need to wait to press LB again?
Re: MouseGestureL
Posted: 08 Dec 2020, 06:10
by Mika_erdo
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 (25.3 KiB) Viewed 4304 times
Re: MouseGestureL
Posted: 08 Dec 2020, 20:17
by Pyonkichi
@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.
Re: MouseGestureL
Posted: 09 Dec 2020, 22:36
by Mika_erdo
@Pyonkichi
I thank you for pointing me in the right direction, I will thoroughly read the docs now!
Re: MouseGestureL
Posted: 11 Dec 2020, 10:33
by Mika_erdo
@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__
RB_LB__LB__
What could I be doing wrong? Thank you.
Re: MouseGestureL
Posted: 12 Dec 2020, 02:34
by Pyonkichi
@Mika_erdo, Script for RB_LB__ should be this.
Code: Select all
if (!MG_Timer(-200)) {
Tooltip, RB_LB__
}
Re: MouseGestureL
Posted: 12 Dec 2020, 04:51
by Mika_erdo
@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 (72.86 KiB) Viewed 3111 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?
Re: MouseGestureL
Posted: 12 Dec 2020, 21:22
by Pyonkichi
@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.
Re: MouseGestureL
Posted: 13 Dec 2020, 02:23
by Mika_erdo
@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.
Re: MouseGestureL
Posted: 13 Dec 2020, 17:15
by Mika_erdo
@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.
- Example.jpg (31.91 KiB) Viewed 3072 times