Wacken Posted January 30, 2007 Share Posted January 30, 2007 I call pixelsearch(100,100,200,200,color) The pixel to be found is located on 120,120. 1) Will it return? a: [20,20] b: [21,21] c: [120,120] I want to search 1 line of 50 pixels long: -Pixelsearch(100,100,100,150) -Or i use a loop and check 50 pixels individually for their collor. 2) Does this make a significant difference in exectution speed ? Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 30, 2007 Share Posted January 30, 2007 Any pixel operations will be slow without direct API access. I would assume it would return 120, 120. Link to comment Share on other sites More sharing options...
Shevilie Posted January 31, 2007 Share Posted January 31, 2007 I call pixelsearch(100,100,200,200,color) If your in doubt try this pixelsearch(100,100,200,200,color) pixelsearch(99,99,201,201,color) If they return the same then [120,120] if not then you should be able to see what concept they are returning at Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Wacken Posted February 1, 2007 Author Share Posted February 1, 2007 Thanx, I was afraid the pixelsearch and pixelchecksum would be slow, but i had winactivate quite a few times in my functions. This function takes 250 ms :S 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