Jump to content
Sign in to follow this  
Zaxo

Pixelgetcolor issue

Recommended Posts

Zaxo

Hello and a good day.

I have some problem with Pixelgetcolor function.It won't work after i ran it again after the initial scan. Here are my code:

$var = PixelGetColor( 193 , 38 )
    If $var = 4383743 Then
        $soll = PixelGetColor( 67 , 390 ) ;;this won't work
        if $soll = 16776191 then
                F6()
                click()
    endif
    EndIf

any enlightment? Thx

Share this post


Link to post
Share on other sites
seandisanti

$var = PixelGetColor( 193 , 38 )
    If $var = 4383743 Then
        $soll = PixelGetColor( 67 , 390 ) ;;this won't work
        if $soll = 16776191 then
                F6()
                click()
                endif
    Else MsgBox(0,"color",$var & " was the color detected");should show you why it didn't execute

    EndIf

***edit***

misplaced an endif

Edited by cameronsdad

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.