capture time (in ms) between pixel changes of color

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
mgroen
Posts: 97
Joined: 13 Jul 2018, 02:22

capture time (in ms) between pixel changes of color

16 Jul 2018, 05:15

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?
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: capture time (in ms) between pixel changes of color

16 Jul 2018, 05:31

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
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: AHK_user and 213 guests