Zaxo Posted September 19, 2010 Posted September 19, 2010 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
seandisanti Posted September 19, 2010 Posted September 19, 2010 (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 September 19, 2010 by cameronsdad
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now