MouseGestureL

Post your working scripts, libraries and tools
User avatar
Pyonkichi
Posts: 70
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

14 Dec 2020, 04:21

@Mika_erdo, It seems to be a bug. I'll find the cause.
The temporary solution is adding dummy gestures RB_WU_ and RB_LB__.
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

14 Dec 2020, 23:25

@Pyonkichi
Great, I'll use your dummy solution for now. Thanks! :D
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

24 Dec 2020, 20:47

Is it possible to define F11 & F12 in the same manner as ^Rbutton as a single trigger? Because of the harware I use, I only have access to Shift and Ctrl and cannot hold them together.

I am looking for a way to use two keys together just like one uses a modifier and another key. You shared this solution on page 3
Pyonkichi wrote:
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
}
But with this solution, it does not seem possible to use logic through functions such as if (!MG_Timer(-100)) MG_Abort()
to achieve F11 & F12__F11 & F12_8_ (^RB__^RB_8_)

Is there a way I can create F11 & F12__ F11 & F12_8_ with its own gesture, actionscript and hint system?

This is maybe beyond the scope what AHK allows for but I wanted to ask to know for sure and remove all doubt. Thank you
User avatar
Pyonkichi
Posts: 70
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

25 Dec 2020, 05:01

@Mika_erdo, This may be the solution.

F12_

Code: Select all

flgF11Pressed := GetKeyState("F11", "P")
F12__

Code: Select all

if (!MG_Timer(-200)) {
	if (flgF11Pressed || GetKeyState("F11", "P")) {
		ToolTip, F11+F12
	}else {
		ToolTip, F12
	}
}
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

25 Dec 2020, 15:01

@Pyonkichi
This is really great Pyonkichi, I did not even know you can do this inside MGL actionscript. I have not tried it as christmass eve is keeping me tied up but I will in good time.

Thanks allot for this, much appreciated.
User avatar
kunkel321
Posts: 263
Joined: 30 Nov 2015, 21:19
Facebook: https://www.facebook.com/kunkel321
Google: kunkel321

Re: MouseGestureL

29 Dec 2020, 11:32

I just recently discovered MGL. It's pretty cool! Many thanks to the authors/developers.

I see that there is a pretty good onboard Help file. I'm wondering... Is the help file available in other formats than compiled html? I'd like to read it on my Kindle, but Kindle doesn't seem to handle CHM. A PDF file would be excellent.
ste(phen|ve) kunkel
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

18 Jan 2021, 13:30

@Pyonkichi
I have been experimenting with MGL some more these past days and I have two questions that would help me allot in understanding things further.

Is there a limit of gestures that MGL can work with at any given time? Or even a recommended number that one should stay below?

Lastly, Is there a way to speed up the process of MG_Edit.ahk converting the MouseGestureL.ini into MG_Config.ahk?
I ask because, the more gestures that MouseGestureL.ini file has, the more waiting time for converting it. on my PC, the waiting time for

  • 5,000 gestures is 30 seconds
  • 10,000 gestures is 1 minute
  • 15,000 gestures is 2 minutes
I am okay with 60 seconds once in a while for example, for major setting changes but it seems every time I change even a small line of an actionscript in the ini. file in a text editor. it needs to convert everything and take another 60 seconds to do it.

Thanks for your help.
User avatar
Pyonkichi
Posts: 70
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

19 Jan 2021, 01:40

@Mika_erdo, Over 1,000 gestures are beyond my imagination. I don't know if there are many people like you, but if so, it may need to be improved.
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

19 Jan 2021, 07:02

@Pyonkichi
Over 1,000 gestures are beyond my imagination. I don't know if there are many people like you
hehe, the example below was actually very conservative. If you look at the table below, its only using 16 gesture directions and the sum is 4,000.

mgl.jpg
mgl.jpg (46.43 KiB) Viewed 757 times

I want to take 14 keys and reserve them entirely as MGL triggers, these keys are on the side of my mouse. I think I can work with my computer more intuitively and faster this way. My hands are on the mouse and pen stylus at all times, only reaching for the keyboard when I need to type sentences.
From the tests I performed, I don’t think MGL performs any differently with 1,000 or 10,000 gestures.

As for MG_Edit.ahk, one thing I can think of would be for MG_Edit.ahk to just check if an actionscript for a gesture was changed and only convert that single line, instead of converting the entire MouseGestureL.ini file.

pen.jpg
pen.jpg (24 KiB) Viewed 757 times
User avatar
Pyonkichi
Posts: 70
Joined: 16 May 2017, 20:40
Contact:

MouseGestureL.ahk v1.39

25 Jan 2021, 06:52

MouseGestureL.ahk v1.39
  • Added "Exclude from default gesture targets" to individual target options.
  • Fixed a bug where gestures that press a sub-trigger (a button that is not used to start a gesture) immediately after the strokes are not recognized correctly.
  • "Restore Closed Folders" plug-in v1.01
    Fixed a bug that abnormal termination occurs when "Show Closed Folders List" is executed after closing a special folder.
Download:
   
For details of the changes, refer to the following page:
 
Last edited by Pyonkichi on 25 Jan 2021, 19:52, edited 3 times in total.
User avatar
submeg
Posts: 142
Joined: 14 Apr 2017, 20:39
GitHub: submeg

Re: MouseGestureL

25 Jan 2021, 18:39

Hey @Pyonkichi, thanks for the update! If I switch to this version, how do I copy my current settings arcoss?
____________________________________
Check out my site, submeg.com
Connect with me on LinkedIn
Courses on AutoHotkey :ugeek:
User avatar
Pyonkichi
Posts: 70
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

25 Jan 2021, 19:55

@submeg, You can overwrite all new files. Your configuration will be retained.
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

27 Jan 2021, 22:13

@Pyonkichi
Can I get some help with this please. I am trying to tap with left control while holding F10. So for example F10_LCTRL__

Code: Select all

 
[F10__]
G=F10__
Default=Tooltip, F10__

[F10_LCTRL__]
G=F10_LCTRL__
Default=Tooltip, ctrl__

[F10_8LCTRL__]
G=F10_8LCTRL__
Default=Tooltip, F10_8LCTRL__

[F10_8_]
G=F10_8_
Default=Tooltip, F10_8_

[LCTRLF10__]
G=LCTRLF10__
Default=Tooltip, LCTRLF10__
I've tried to remove as many gestures as I can to isolate the issue. In the above example configuration
Pressing left control while F10 is down. MGL is stuck and gesture trail does not turn of when F10 is released. Also tapping left control more will not update its tooltip.

But as soon as I remove LCTRLF10_ from the .ini file so that it looks like the example below and then reload. The issue goes away, tapping with Lcontrol works just fine.

Code: Select all

[F10__]
G=F10__
Default=Tooltip, F10__

[F10_LCTRL__]
G=F10_LCTRL__
Default=Tooltip, ctrl__

[F10_8LCTRL__]
G=F10_8LCTRL__
Default=Tooltip, F10_8LCTRL__

[F10_8_]
G=F10_8_
Default=Tooltip, F10_8_
None of the triggers have an asterik charecter in them as well.
I have attached, the example .ini
I would appreciate it if you can tell me what could be the cause of the issue. Thank!
Attachments
MouseGestureL.ini
(3.39 KiB) Downloaded 7 times
Last edited by Mika_erdo on 27 Jan 2021, 22:16, edited 1 time in total.
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

27 Jan 2021, 22:15

Here are the F10 LCTRLF10 and LCTRL triggers just in case you want to see them.
Attachments
LCTRLF10.ahk
(850 Bytes) Downloaded 4 times
LCTRL.ahk
(799 Bytes) Downloaded 3 times
F10.ahk
(716 Bytes) Downloaded 2 times
User avatar
Pyonkichi
Posts: 70
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

28 Jan 2021, 10:32

@Mika_erdo
wrong: LCTRLF10__
correct: LCTRL_F10__
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

28 Jan 2021, 16:45

@Mika_erdo
I think you missunderstood me.

LCTRLF10 is a single trigger on its own. The three triggers in question are defined like so.
9KGnyYlS9v.png
9KGnyYlS9v.png (35.33 KiB) Viewed 373 times
I plan to only use the trigger LCTRL as a sub trigger. so for example, Pressing left control while F10 is down.

The issue is using LCTRL as a sub trigger causes MGL to get stuck and gesture trail does not turn of when F10 is released But when I remove LCTRLF10_ from the .ini file. The issue goes away.

in my post above this one I have uploaded the 3 triggers and .ini file. I am certain you will reproduce the issue in your envoiroment too. Thank you
User avatar
Pyonkichi
Posts: 70
Joined: 16 May 2017, 20:40
Contact:

Re: MouseGestureL

30 Jan 2021, 04:08

@Mika_erdo, Use a completely different name for each trigger.
Mika_erdo
Posts: 24
Joined: 30 Jul 2020, 17:23

Re: MouseGestureL

01 Feb 2021, 03:37

Ahhh why I didnt I think that.
MGL used labels allot do its magic.
Excellent idea, Thank you so much.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: boiler, swagfag and 24 guests