Jump to content

Recommended Posts

Posted

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

Posted (edited)

$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

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
×
×
  • Create New...