,4arqKwH}*6u/?{<tJcyqJ|g6KUqS+9Qk}eEa@B)Z2X<zOUo[VMA9X=TB,4ZtzyV)jlA=&}&Oer{?ERASwxX#=+v04&q/?)}eu@Y3Iii&G=*';<=.xrogjgx Topic is solved

Ask gaming related questions (AHK v1.1 and older)
User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: LButton short click?  Topic is solved

11 Oct 2021, 05:38

Inserting anything in between sending the down and the up cannot make it faster than having nothing in between, such as:

Code: Select all

SendInput, {Lbutton down}{Lbutton up}

or:

Code: Select all

SetMouseDelay, -1
Click

Putting the smallest delay possible is like trying to have the shortest pit stop possible when you don’t even need to stop.
User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: LButton short click?

11 Oct 2021, 08:41

ISYHACK wrote:
11 Oct 2021, 08:32
I wanted to make the c version of this, did I do it right?

Code: Select all

SetBatchLines, -1 F2:: SendInput, {c down}{c up}
It can’t all be on the same line like that.
User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: LButton short click?

11 Oct 2021, 08:54

Either:

Code: Select all

SetBatchLines, -1

F2::SendInput, {c down}{c up}

Or:

Code: Select all

SetBatchLines, -1

F2::
SendInput, {c down}{c up}
return
User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: LButton short click?

12 Oct 2021, 06:03

Is that the whole script? You don’t have any other hotkeys getting triggered?
User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: LButton short click?

14 Oct 2021, 20:37

You can put $c in place of F2. The $ prevents it from calling itself and making an endless loop of hotkey calls. I doubt it will turn out to act much differently than just pressing c without a script, though.
User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: LButton short click?

16 Oct 2021, 20:34

That's not enough information. You can post your full script and what you expect it to do and what it does instead if you want help.
User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: LButton short click?

17 Oct 2021, 06:48

You didn’t mention wanting it to click many times while you hold it down. I’ll let someone else help with this new requirement.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 74 guests