MouseGestureL

Post your working scripts, libraries and tools for AHK v1.1 and older
hachondeoro
Posts: 9
Joined: 31 May 2020, 06:21

Re: MouseGestureL

Post by hachondeoro » 31 May 2020, 06:29

@Pyonkichi
Hi, I have created my account for specifically reporting this bug. When I add a game to the Ignored targets, e.g. dota2.exe , all the triggers from rbutton and mbutton still continue to be executed when dota2 is at the front. What solution would you suggest me? Kind regards
Last edited by BoBo on 01 Jun 2020, 01:08, edited 1 time in total.
Reason: Moved to Gaming section.

User avatar
Shirubadappuru
Posts: 3
Joined: 31 May 2020, 22:43

Re: MouseGestureL

Post by Shirubadappuru » 31 May 2020, 22:53

Hi, hachondeoro.I had created help for this software before.
I'm preparing to bundle the updated help with the next release of the latest version.

Now, to answer your question.
There is a plugin on the uploader that automatically calls MG_Disable and disables MGL itself.
Click the download button at the bottom of the screen that opens by clicking on the URL below, insert this file into your Plugin folder, and restart MGL, and it will automatically #Include.

https://ux.getuploader.com/autohotkeyl/download/152
Last edited by BoBo on 01 Jun 2020, 01:13, edited 1 time in total.
Reason: Fixed broken link.

hachondeoro
Posts: 9
Joined: 31 May 2020, 06:21

Re: MouseGestureL

Post by hachondeoro » 01 Jun 2020, 06:55

@Shirubadappuru
Hi, thanks. I'm trying it out, but so far, it is working well to block the input from the commands when I run dota. Cheers

User avatar
Pyonkichi
Posts: 109
Joined: 16 May 2017, 20:40
Contact:

MouseGestureL v1.34

Post by Pyonkichi » 03 Jun 2020, 21:26

MouseGestureL.ahk v1.34
  • Help files have been updated.
  • Improved some behaviors of the configuration dialog box.
Download:
[Mod edit: Links fixed.]

hachondeoro
Posts: 9
Joined: 31 May 2020, 06:21

Re: MouseGestureL

Post by hachondeoro » 04 Jun 2020, 21:28

@Pyonkichi
Hello. I have been using this program for the last 2 months. It works consistently and it is very accurate btw, with minimal cpu load.
Having said that, I have a question.
Say I want to use Mbutton and an UP movement to refresh chrome as:

Code: Select all

MB_8::Send, {F5}
But I also want to continue using my Mbutton as usual. Is there any way to press Mbutton and wait for any command from MouseGestureL? If no other MouseGestureL command (Mbutton & LEFT/UP/ RIGHT) is triggered, wait until Mbutton is released to press {Mbutton}?

Kind regards

User avatar
Pyonkichi
Posts: 109
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

Post by Pyonkichi » 05 Jun 2020, 04:24

@hachondeoro,
If I understand what you mean, you don't need any special configuration to get what you want. Just define "MG_8_" and assign "Send, {F5}". (Don't define "MB_" and "MB__".) When you press M-button and move up cursor and release a button, F5 will be sent. When you press M-button and release it immediately, auto-scrolling will be started.

hachondeoro
Posts: 9
Joined: 31 May 2020, 06:21

Re: MouseGestureL

Post by hachondeoro » 05 Jun 2020, 11:00

@Pyonkichi
Hi, beforehand, thank you. That works indeed quite well. I didn't know I could set MG_8_ , before I was setting them as MG_8, so I had a lot of problems.

Now, to fix other problem I have. It's basically the same situation. I would like to set my Xbutton2 to ^{Tab}, and X2B_8 (Xbutton2 and UP) to Send {F5}. The difference is that now, Xbutton2 doesn't have a native function like Mbutton(which by itself triggers a middle click), but now I want to assign it one specifically (being it ^{Tab} ). How can I achieve this?

Kind regards

User avatar
Pyonkichi
Posts: 109
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

Post by Pyonkichi » 05 Jun 2020, 20:00

@hachondeoro,
You don't have to think complicated. You can implement it by the same way.
Define "X2B__" to "Send, ^{Tab}".
Define "X2B_8_" to "Send, {F5}".

User avatar
Shirubadappuru
Posts: 3
Joined: 31 May 2020, 22:43

Re: MouseGestureL

Post by Shirubadappuru » 05 Jun 2020, 20:35

Hi hachondeoro :)
I suggest that you read the help that comes with the latest version from the top to the end of basic usage when you have time.
You will surely find what you wanted to know.

hachondeoro
Posts: 9
Joined: 31 May 2020, 06:21

Re: MouseGestureL

Post by hachondeoro » 05 Jun 2020, 21:00

@Pyonkichi
Hi, it works! Looks like I have been missing that last step, an additional "_" for "any button up" in my commands. Things work much more consistently now, thanks and much appreciated.
@Shirubadappuru I indeed have reviewed the help file a lot of times and browsed in the forums before asking the question, sorry about that :)

User avatar
Shirubadappuru
Posts: 3
Joined: 31 May 2020, 22:43

Re: MouseGestureL

Post by Shirubadappuru » 10 Jun 2020, 07:05

Thank you for using MGL
Thanks for reading the help
Questions are welcome.

Netmano
Posts: 58
Joined: 17 Jun 2020, 16:24

Re: MouseGestureL

Post by Netmano » 17 Jun 2020, 16:53

This script changed the way I work with computers. its so beautifull and effective. I signed up on here for one, to let you guys know you that. great effort.

I also, have a question.

I am trying to use two buttons to trigger a gesture, something like

Code: Select all

 F2_F7_8 :: send, ^a
so I created F2 and F7 as their own seperate trigger keys.

Then tried F2_F7_8 as a gesture

The problem is. F2 activates Trail strokes and arrows, it does not trigger what is assigned to F2 and F7 key combination
but is entirely occupied by MGL. How can I use F2 as a standard F2 key?


Thanks!

User avatar
Pyonkichi
Posts: 109
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

Post by Pyonkichi » 17 Jun 2020, 21:31

@Netmano, Try the following.

Define F7_8_ as a gesture and assign the following actions:

Code: Select all

if (GetKeyState("F2", "P")) {
	; Put the action you need here.
	TrayTip,, Gesture was recognized
}
Last edited by Pyonkichi on 19 Jun 2020, 16:51, edited 1 time in total.

Netmano
Posts: 58
Joined: 17 Jun 2020, 16:24

Re: MouseGestureL

Post by Netmano » 18 Jun 2020, 07:56

@Pyonkichi
Oh man, awesome.
i will try that when i get home.
thanks for prompt reply

Netmano
Posts: 58
Joined: 17 Jun 2020, 16:24

Re: MouseGestureL

Post by Netmano » 10 Jul 2020, 19:27

WZebyqreSO.png
WZebyqreSO.png (9.57 KiB) Viewed 5439 times

Hey I am trying see what this setting is for, I have read the Help file but I could not fully understand it.

Is it a setting that if a gesture is repeated twice within the time limit it wll execute another action?

so for example;
RB_8_ stroke once it will perform "Copy"
RB_8_ stroke twice within tine limit will perform "Paste"

Or is it for something else entirely? Thanks.

User avatar
Pyonkichi
Posts: 109
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

Post by Pyonkichi » 11 Jul 2020, 22:10

@Netmano,
Yes, this setting is to consider a gesture that is interrupted by releasing a trigger as one gesture. But, if you want to assign different actions to single and double, setting this item is not enough. You need to devise the assigned action like follows.

for "RB_8_":

Code: Select all

;Execute After Waiting
if (!MG_Timer(-300)) {
	;Action to be run when the waiting time has elapsed.
	TrayTip,, Single
}
;This processing can be added from "Execute After Waiting" in the action template list.
for "RB_8_RB_8_":

Code: Select all

TrayTip,, Double
* With the above action assignment, you don't need to set the time setting you asked.

Netmano
Posts: 58
Joined: 17 Jun 2020, 16:24

Re: MouseGestureL

Post by Netmano » 12 Jul 2020, 11:12

@Pyonkichi
This is amazing!
Your solution even allows for unique timming for every stroke. Thanks!

To think a software as usefull as this is so small and entirely portable and all free. Incredible.

I took some time out this weekend for much needed redesign of my MGL databse and how gestures are implemented.
Thanks to the newly released help documents and some experimenting. I was able to increase precision by at least %80.
Something that really bugged me was accidental triggers but I've entirly eliminated them now by using the Diagonal angle section.
Among others things, I was able to get hints to be displayed after a second wait. for those times when my brain is having a fart :)

One thing I found usefull was. Using arrow symbols as the names for gestures. for a quick read in MGL_Editor and later on as hints. you could even create small .ahk script just for MGL Editor that will type an arrow via a hotkey for you.
vkkYCEWgFp.png
vkkYCEWgFp.png (20.17 KiB) Viewed 3984 times

Netmano
Posts: 58
Joined: 17 Jun 2020, 16:24

Re: MouseGestureL

Post by Netmano » 13 Jul 2020, 06:53

Is there a way to get the action for the trigger (RB_) to not be sent if I scroll up while holding trigger?
I have set the gestures and their actions like so,

Code: Select all

RB__ send, ^n
RB_WU_ send, ^{tab}
The problem I am having is that, If I scroll up while holding trigger, ^{tab} action gets sent. and then when I release Trigger, ^n action is also sent as well.

How do I make it so that if I scrolled scrolled the wheel while holding the trigger, do not execute ^naction when trigger is released?

User avatar
Pyonkichi
Posts: 109
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

Post by Pyonkichi » 13 Jul 2020, 09:57

@Netmano, Assign this to RB__.

Code: Select all

if (MG_Executed==1) {
	Send, ^n
}

Netmano
Posts: 58
Joined: 17 Jun 2020, 16:24

Re: MouseGestureL

Post by Netmano » 14 Jul 2020, 08:52

That did it. Thanks!

Post Reply

Return to “Scripts and Functions (v1)”