capture time (in ms) between pixel changes of color

Get help with using AutoHotkey and its commands and hotkeys
mgroen
Posts: 35
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”

Who is online

Users browsing this forum: Bing [Bot], flyingDman and 131 guests