xekon Posted January 28, 2013 Posted January 28, 2013 (edited) right now I have a script that I wrote that goes pixel by pixel using PixelGetColor() and then comparing the R, G, and B values. to find the pixel that has the highest values. The script is working, but anytime I am working with an area of more than say 100x100 pixels the processing speed is just too slow. It has to do with using PixelGetColor(). I was hoping somebody could drop a hint to me on what would be a more efficient method, like working with a cached image I am sure would be much quicker than working with the pixels displayed on the screen, or maybe there is a way to get pixel information for multiple pixels all at once. Any hints or suggestions are greatly appreciated. For $x = $L to $R;compare pixels RGB For $y = $T to $B $rgb = _ColorGetRGB("0x00"&Hex(PixelGetColor($x,$y),6)) For $i = 0 to UBound($rgb) - 1 If colorcheck($i) = 1 Then colorsave($x,$y) Next TrayTip("","x:"&$x&" y:"&$y,999) Next Next Edited January 28, 2013 by xekon
JohnOne Posted January 28, 2013 Posted January 28, 2013 xekon 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
xekon Posted January 28, 2013 Author Posted January 28, 2013 PERFECT, and even easier to implement than I thought the suggested solution would be! Thank you
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