Double click mouse

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
RealNickPotato
Posts: 2
Joined: 24 Jul 2022, 17:33

Double click mouse

Post by RealNickPotato » 24 Jul 2022, 17:43

How can I make my mouse double click like where i click it once it clicks twice but only after i press the left mouse button twice and not ever time or when I hold down the button it doesn't double click

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

Re: Double click mouse

Post by mikeyww » 24 Jul 2022, 19:16

So you want the mouse to click twice when you press the button twice? :?

RussF
Posts: 1242
Joined: 05 Aug 2021, 06:36

Re: Double click mouse

Post by RussF » 25 Jul 2022, 06:52

Yes, but he wants it to click twice after clicking once, so I guess that means it clicks 4 times if he clicks twice - but not every time, so we must use Random to flip a coin. What percentage of times does he want it to click once vs. twice? We can call the function Surprise().

Russ

RealNickPotato
Posts: 2
Joined: 24 Jul 2022, 17:33

Re: Double click mouse

Post by RealNickPotato » 13 Aug 2022, 05:24

Ngl after i asked this question i realized that it made no sense so no point in answering it but if someone wants the challenge here is more in depth:

If u press the mouse and u click it again in like a 3 second interval it will double click but if u wait that 3 seconds like if u hold down the mouse or only press it once then it wont double click(ik its still very confusing also anything with the same function is fine)

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

Re: Double click mouse

Post by mikeyww » 13 Aug 2022, 08:04

Here is a way to get started.

Code: Select all

~LButton Up::
If (A_ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < 3000)
 Click, 2
Return

Post Reply

Return to “Ask for Help (v1)”