Page 1 of 1

How to improve color reading speed of PixelGetColor & PixelSearch at a pixel position on the screen ?

Posted: 18 May 2019, 05:40
by ThewarII
As my my question in subject: "How to improve color reading speed of PixelGetColor & PixelSearch at a pixel position on the screen ?"
I have a code very short like

Code: Select all

Loop,
{
	PixelGetColor,ColorA,123,321
	If (ColorA = 0x123456)
	{
		Send, do something very short, example: send, 8
	}
	PixelSearch,ColorX,ColorY,123,321,123,321,0x123456,3
	If (ColorX = 123 && ColorY = 321)
	{
		Send, do something very short, example: send, 1
	}
}
i found speed of PixelGetcolor delay around from 0.01 to 0.02 second.
i want it faster like 0.001 to 0.005 second.