Timing generator Topic is solved
-
- Posts: 5
- Joined: 18 Feb 2018, 17:35
Timing generator
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?
-
- Posts: 8
- Joined: 18 Feb 2018, 19:10
Re: Timing generator
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
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
Re: Timing generator Topic is solved
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
HTH
-
- Posts: 5
- Joined: 18 Feb 2018, 17:35
Re: Timing generator
That worked perfectly. Many thanks.Xtra wrote:Uses toolip with a toggle to time the doubleclicks.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
HTH
Who is online
Users browsing this forum: vikasgandhi and 73 guests