three mouse clicks

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Felix Siano
Posts: 88
Joined: 23 Apr 2023, 13:03

three mouse clicks

Post by Felix Siano » 29 Apr 2023, 10:11

how to add to mouse when double clicking it simulates ctrl + v (paste) but keeping single click and hold normal. Just modify the double click.

User avatar
mikeyww
Posts: 27066
Joined: 09 Sep 2014, 18:38

Re: three mouse clicks

Post by mikeyww » 29 Apr 2023, 12:54

Code: Select all

#Requires AutoHotkey v2.0
InstallKeybdHook
~LButton::(A_PriorKey = 'LButton' && A_TimeSincePriorHotkey < 300) && (KeyWait('LButton'), Send('^v'))

Felix Siano
Posts: 88
Joined: 23 Apr 2023, 13:03

Re: three mouse clicks

Post by Felix Siano » 22 May 2023, 23:11

Thank you very much

Felix Siano
Posts: 88
Joined: 23 Apr 2023, 13:03

Re: three mouse clicks

Post by Felix Siano » 01 Jun 2023, 11:44

Hello again, is it possible to use the above command only on specific windows?

And most importantly it is possible to add between two strokes. Like >300 and <400?

User avatar
mikeyww
Posts: 27066
Joined: 09 Sep 2014, 18:38

Re: three mouse clicks

Post by mikeyww » 01 Jun 2023, 12:35

1. See https://www.autohotkey.com/docs/v2/lib/_HotIf.htm

2. Yes, you can add as many conditional statements as you wish.

Post Reply

Return to “Ask for Help (v2)”