Isisagate Posted May 7, 2006 Posted May 7, 2006 I have a pretty elaborate script going right now and it's based off a more simplistic script that was hard corded. Here is the trouble some line of code.... $coord = PixelSearch ($gTop, $gLeft, $gRight, $gBottom, $color, $tolerance) The value of $color seems to be overlooked and treated like it's looking for a black pixel. "000000" Let me first say the values are loaded from an ini file. I have tried storing them as color=0xD4F0CE color=D4F0CE the only way I can get it to work is if I use decimal notation color=13955278 is there anyway get the hex string to work?
seandisanti Posted May 11, 2006 Posted May 11, 2006 I have a pretty elaborate script going right now and it's based off a more simplistic script that was hard corded. Here is the trouble some line of code.... $coord = PixelSearch ($gTop, $gLeft, $gRight, $gBottom, $color, $tolerance) The value of $color seems to be overlooked and treated like it's looking for a black pixel. "000000" Let me first say the values are loaded from an ini file. I have tried storing them as color=0xD4F0CE color=D4F0CE the only way I can get it to work is if I use decimal notation color=13955278 is there anyway get the hex string to work?you could do something like this... $color="D4F0CE" $coord = PixelSearch ($gTop, $gLeft, $gRight, $gBottom,dec(StringLeft($color,2))&Dec(StringMid($color,3,2))&dec(StringRight($color,2)), $tolerance)
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