Sign in to follow this  
Followers 0
layer

PixelSearch Faster?

7 posts in this topic

hey again, is there a way to make PixelSearch faster so that it doesnt take a second before the other funtion takes place? besides making the place to search smaller, there must be a way to make it faster. :)


FootbaG

Share this post


Link to post
Share on other sites



Nope sorry =/ Just shorten the area of the search.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Did you check the help file?

Hint:

Use the step parameter.

Edited by SlimShady

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

if the item you are looking for has a large area of color, you could use a checkerboard type search for it.

In other words, if you were looking for a Yellow circle that was 300 pixels tall, you could have pixelsearch a box 20x20 then skip the next 20x20, and search the next 20x20, ect etc.

basically this is what step does

or you could do a search of 2pixels x desktop hieght skip next 30 width and repeat as long as your item is larger than 30 pixels in width in that color. but that would have to be scripted. :)

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

ok, thank you guys, and scriptkitty, youve solved everything for me today!!! thank you so much! i really do appreciate it


FootbaG

Share this post


Link to post
Share on other sites

try scanning every other pixel or every n th pixel. As you can probably guess, this increases excecution speed by a factor of n.


Roger! You son of a big pile o' Monkey Nuts.

Share this post


Link to post
Share on other sites

You're kinda late... This was answered correctly about 4 days ago.


Who else would I be?

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