Sign in to follow this  
Followers 0
sumone4life

Search For Bitmap

5 posts in this topic

I've been searching through the forums and have no found any concrete answer for this... but is there a function where you can take either a bitmap or load a bitmap as a string and search for it within a given area or just on the screen?

Share this post


Link to post
Share on other sites



You could use a combo of Pixelsearch(), PixelGetColor(), and PixelCheckSum()...

Check the helpfile for those functions and try looping through and comparing the checksums of the bmp you want, and the bitmap at the coordinates...


---Sparkes.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ok... the only problem i see with this is that 1 it seems to be requiring users input which isnt really ideal for the code i wanna make.. and 2 if there are other colored pixels identical or similar to the one you are looking for it seems like it would mess the script up a bit.

ps... im pretty new to autoit so bare with me

Edited by sumone4life

Share this post


Link to post
Share on other sites

Check Larry's post. That has exactly what you're looking for. It will checksum an area, and then find that area again and move the mouse there. I'm sure you can modify his code to suit your needs...

Sparkes.


---Sparkes.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

i couldnt get his script to work... i put it over his avatars nose.. pressed the tilda key and then opened the other script and pressed the tilda key and it said it couldnt find it.

EDIT: Nevermind... thought i was using the BETA version but apparently i wasnt so it works now.. ill look at it and see if i can use it Thanks

Edited by sumone4life

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