ljlassi Posted November 9, 2010 Share Posted November 9, 2010 I'm making a program where i would need to make PixelSearch search from bottom to top, instead of top to bottom. AutoIt help file mentions that it can be changed, but does not mention how to change it. How can i change it? Link to comment Share on other sites More sharing options...
iamtheky Posted November 9, 2010 Share Posted November 9, 2010 (edited) Just reverse the values. example searches bottom to top and right to left, i believe. #include <Array.au3> $pix = PixelSearch (@Desktopwidth , @DesktopHeight , 0 , 0 , 0x000000) _ArrayDisplay ($pix) Edited November 9, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
JohnOne Posted November 9, 2010 Share Posted November 9, 2010 does not mention how to change it.It certainly doesLeft-to-Right - left < rightRight-to-Left - right < leftTop-to-Bottom - top < bottomBottom-to-Top - bottom < topThe above example searches botom to top, right to left AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ljlassi Posted November 9, 2010 Author Share Posted November 9, 2010 Thanks, This works perfectly Link to comment Share on other sites More sharing options...
ljlassi Posted November 9, 2010 Author Share Posted November 9, 2010 It certainly does The above example searches botom to top, right to left Ok. I just didnt get it. It can be hard to get for a "newbie", as the help file first tells the parameters should go like this: "PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] )" Link to comment Share on other sites More sharing options...
JohnOne Posted November 9, 2010 Share Posted November 9, 2010 Yes, I know. You got an example, I was pointing out that the helpfile does tell you how. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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