Hi
I would like to capture the time (in ms) between change of a specific pixels color.
I already have the code to capture pixel color, this is specifically on how to capture time.
Think of it as a stopwatch to start and stop and read the timer...
I am thinking about a "start timer" function, "stop timer" function, and display the difference (in ms) between "stop" and "start"
I have searched for "Timer" in the help but couldn't find any relevant results...
Anybody who can help me?
capture time (in ms) between pixel changes of color
Re: capture time (in ms) between pixel changes of color
replace "pixelColorChanged" with your color change check
Code: Select all
lastTick := A_TickCount
;your Code
if(pixelColorChanged)
{
ticksPassed := A_TickCount - lastTick
lastTick := A_TickCount
MsgBox, % ticksPassed
}
Re: capture time (in ms) between pixel changes of color
That helped. Thanks a lot
Re: capture time (in ms) between pixel changes of color
Helped a lot, thanks!
Who is online
Users browsing this forum: AHK_user and 213 guests