Timing generator Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Dreamdweller
Posts: 5
Joined: 18 Feb 2018, 17:35

Timing generator

18 Feb 2018, 17:48

I think I know the answer but I want to make sure. Is there a way of timing the length of time between 2 mouse clicks? I'm assuming there most likely isn't one unless I am using a macro generator of some type. It is for a game and I'm trying to get the exact timing between clicking twice to fire a shot. If there isn't one do I have to use some trial and error to find the timing I need?
bootlegRat
Posts: 8
Joined: 18 Feb 2018, 19:10

Re: Timing generator

18 Feb 2018, 22:23

LButton::ATime := A_TickCount



RButton::

BTime := A_TickCount

MsgBox % BTime - ATime

return

^x::ExitApp

//END

ctrl+x to exit.

Don't know how to use LButton twice in this simple code sorry
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Timing generator  Topic is solved

19 Feb 2018, 00:33

Code: Select all

#NoEnv

~LButton::ToolTip, % (T := !T) ? (C, S := A_TickCount) : C .= (A_TickCount - S) . "`n"    ; Use
~RButton::ToolTip % C := ""                                                               ; Reset
~Esc::ExitApp                                                                             ; Exit
Uses toolip with a toggle to time the doubleclicks.

HTH
Dreamdweller
Posts: 5
Joined: 18 Feb 2018, 17:35

Re: Timing generator

19 Feb 2018, 08:01

Xtra wrote:

Code: Select all

#NoEnv

~LButton::ToolTip, % (T := !T) ? (C, S := A_TickCount) : C .= (A_TickCount - S) . "`n"    ; Use
~RButton::ToolTip % C := ""                                                               ; Reset
~Esc::ExitApp                                                                             ; Exit
Uses toolip with a toggle to time the doubleclicks.

HTH
That worked perfectly. Many thanks.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: vikasgandhi and 73 guests