Any other settings you might have change in order to make the command to work?
Thanks!
BR,
Andreas
Avastgard wrote: ↑05 Oct 2021, 11:18I don't see why it shouldn't work.
The way my script is set up, I hold RButton, hold LButton, move mouse to the specified direction and release any of the buttons to run notepad. You can't wait too long to release the buttons or you'll miss the recognition threshold and the gesture will not trigger the action.
If I were you I would use the "Remove last one step from current gesture" button in the Gestures tab until you have a gesture that is recognized and work my way up from there to pinpoint what step is causing the issue.
Code: Select all
desc:=Trim(desc), name:=Trim(name), key:=RegExReplace(key,"\s","")
Code: Select all
desc:=Trim(desc), name:=Trim(name), key:=Trim(key)
Pyonkichi wrote: ↑16 Oct 2021, 02:00@agustav3,
You can define a new trigger that combines both mouse buttons.
You need to change the code in MG_Edit.ahk before creating the new trigger.
Line 2225 - before:Line 2225 - modified:Code: Select all
desc:=Trim(desc), name:=Trim(name), key:=RegExReplace(key,"\s","")
(1) Create a trigger.Code: Select all
desc:=Trim(desc), name:=Trim(name), key:=Trim(key)
mgl02.jpg
(2) Define the gestures with the new trigger.
mgl01.jpg
Well, I don't use Chrome but yes I suppose. Been using AHK for a while and while it's super useful for all kinds of things, it seems there are issues when it comes to mouse gestures initiated while holding the right mouse button (like sometimes disabling right clicking altogether).
Ah so maybe it isn't as simple as I thought after all. I suppose pulling that off with just AHK (leaving MouseGestureL aside) doesn't help either, right? I am far from being an AHK expert but "recording" original position then getting back to it is within my knowledge. The problem is that this "recording", since it's part of the action, will also start once the gesture is completed which cancels the whole point. I need a "record link position/url when the gesture starts then once it's completed open the link either by control clicking or simply navigating to the recorded url" thingy.
Well, not quite. Of course doing that with a dedicated mouse button or a shortcut is straightforward, I wouldn't even need AHK or Logitech Software as it's pretty much the default behaviour as you say. Not sure if I haven't been clear enough in my previous messages, maybe it's my fault but I've been trying to say I want to do that with a gesture.Although I'm not sure I understand your problem. Using firefox 94.0.2 (64-bit) allows me to middle click a link and it'll open in a new tab, just like in Chrome. Isn't that what you need?
Thanks for the reply and your good work with the script. Ah MG_Move() was seemingly the missing link in order to make sure the cursor returns to the original position so it clicks the link.
Code: Select all
sendinput, {Ctrl down}
MG_Move()
BlockInput, MouseMove
MG_Click("LB")
sendinput, {Ctrl up}
Code: Select all
BlockInput, MouseMove
MG_Move()
Send, {Control Down}
MG_Click("LB")
Send, {Control Up}
BlockInput, MouseMoveOff
I was about to say it doesn't work either but I've decided to test with a "clean" MouseGestureL instance (unzipped the script and ran from a new folder) and it does work there. Strangely enough, gesture name appears as well (see edit in my previous post). So thanks again!Pyonkichi wrote: ↑27 Nov 2021, 10:46@Epoch, hereCode: Select all
BlockInput, MouseMove MG_Move() Send, {Control Down} MG_Click("LB") Send, {Control Up} BlockInput, MouseMoveOff
Return to “Scripts and Functions (v1)”
Users browsing this forum: No registered users and 35 guests