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
check for pixel color of a specific pixel?
Re: check for pixel color of a specific pixel?
Code: Select all
PixelGetColor, pColor, 1000, 1000
while(pColor == 777777) ; Replace "777777" with your hex color
{
Sleep, 1000
PixelGetColor, pColor, 1000, 1000
}
Code: Select all
F7::
MouseGetPos, mx, my
PixelGetColor, mColor, %mx%, %my%
MsgBox, % mColor
Clipboard := mColor
return
return
Re: check for pixel color of a specific pixel?
That's just perfect, thanks!!