Jump to content
Sign in to follow this  
ExElNeT

PixelSearch from bottom right to topleft

Recommended Posts

ExElNeT

Is there a function available for this way? I know its possible to write my own but an already exiwsiting function might be faster :=)

greetz

Share this post


Link to post
Share on other sites
AzKay

PixelSearch()


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
ExElNeT

PixelSearch()

This function is to search from top left to the bottom right

Share this post


Link to post
Share on other sites
AzKay

Thats what it does.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
Simucal

Thats what it does.

Re-read his post AzKay.. he wanted to search from bottom right to topleft. Which pixelsearch does not do.

AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

Share this post


Link to post
Share on other sites
ExElNeT

Thats what it does.

plz start reading my question! I asked for a way to search from the bottom right to the top left. Thats the opposite direction of the normal PixelSearch()

Share this post


Link to post
Share on other sites
AzKay

Ooops, Sorry.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
ExElNeT

i ve tried a function but it doesnt work ... any idea?

Func PixelSearchReverse($BottomRightX, $BottomRightY, $TopLeftX, $TopLeftY, $PixelColor)

For $x = $BottomRightX to $TopLeftX Step -1

For $y = $BottomRightY to $TopLeftY Step -1

if $PixelColor == PixelGetColor($x, $y) Then

$result[0] = $x

$result[1] = $y

Return $result

EndIf

Next

Next

EndFunc

Share this post


Link to post
Share on other sites
ExElNeT

unfortuneatly is this function very very slow ;( takes about 20x of the time of pixelsearch() ;( any ideas to speed up this function?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.