Sign in to follow this  
Followers 0
Jostein

PixelGetColor Question

1 post in this topic

#1 ·  Posted (edited)

What I want is for the Pixelgetcolor to focus on a window, and not the entire screen. But somhow i dont manage to do it. Is that posible or?

#include "color.au3"
HotKeySet("{esc}", "terminate")
do
$value = PixelGetColor (19, 241)
sleep(1)
msgbox(2, $value, "Still not the right color",  15)
until $value = (16777215)
func terminate()
    Exit
    EndFunc

Solved:D Must have missed this code in the Help file:P

Opt ( "PixelCoordMode" ,0 )

Edited by Jostein

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0