Double press but using A_TickCount only. Topic is solved

Ask gaming related questions (AHK v1.1 and older)
shanshans
Posts: 27
Joined: 13 Dec 2015, 08:10

Double press but using A_TickCount only.

Post by shanshans » 31 May 2022, 09:11

Press n two times within 250ms will send m.
And n will sent n natively unless m is triggered .

How to do it only with A_TickCount ?

thk :)

Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Double press but using A_TickCount only.

Post by Rohwedder » 31 May 2022, 10:58

Hallo,
this is impossible!
Sent n natively means send n immediately, that is, at a time before Autohotkey know if it are allowed to send it.

shanshans
Posts: 27
Joined: 13 Dec 2015, 08:10

Re: Double press but using A_TickCount only.

Post by shanshans » 31 May 2022, 11:10

I should correct myself , close to native(state) is enough XD (eg use send n or send {%n_is%} are ok)

Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Double press but using A_TickCount only.  Topic is solved

Post by Rohwedder » 31 May 2022, 11:20

Then:

Code: Select all

$n::SetTimer, TN, -250,% TN:=!TN 
TN:
SendInput,% TN?("n",TN--):"m"
Return
Sorry, only A_TickCount is too small syntax. At least one Send command should be allowed

Post Reply

Return to “Gaming Help (v1)”