check for pixel color of a specific pixel?

Get help with using AutoHotkey and its commands and hotkeys
mgroen
Posts: 33
Joined: 13 Jul 2018, 02:22

check for pixel color of a specific pixel?

13 Jul 2018, 02:36

Hi,

I would like to implement some sort of "wait for until something is displayed on the screen", in Google browser. I know that what will be displayed is a white colored image. I thought of implementing this by checking for pixel color on a specific pixel.

Is this possible in Autohotkey? And if so, what would be the code to implement this?

I am thinking about something like this (pseudo code):

while (color = grey on pixel (1000,1000)
{
wait 1 second
}


Any help will be appreciated!

Thanks,
Mathijs
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: check for pixel color of a specific pixel?

14 Jul 2018, 04:15

Code: Select all

PixelGetColor, pColor, 1000, 1000 while(pColor == 777777) ; Replace "777777" with your hex color { Sleep, 1000 PixelGetColor, pColor, 1000, 1000 }
Use this to pick a color

Code: Select all

F7:: MouseGetPos, mx, my PixelGetColor, mColor, %mx%, %my% MsgBox, % mColor Clipboard := mColor return return
mgroen
Posts: 33
Joined: 13 Jul 2018, 02:22

Re: check for pixel color of a specific pixel?

16 Jul 2018, 04:42

That's just perfect, thanks!!

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot] and 60 guests