Sign in to follow this  
Followers 0
Wacken

short questions

4 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



Any pixel operations will be slow without direct API access.

I would assume it would return 120, 120.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0