Sign in to follow this  
Followers 0
BigDaddyO

Finding a picture on the screen

5 posts in this topic

Hello,

I am writing a script to verify that online userid's and password's were setup correctly by logging in one at a time to each one then verifying that certain items are displayed on the screen which would tell me if they also have the correct rights assigned to them.

The item will be in roughly the same place for every account and it will be the same size "141w X 19h", shape "rectangle", and color "Gray box with White lettering".

I tried to figure this out from the help file but PixelCheckSum appears to be useful only for changes in specified location. PixelSearch appears to only search for one pixel.

I think I can probably do it if I figure out every pixel in the entire item in the correct order and then do a pixelsearch matching all pixels of the 141x19 box in an area of about 400 pixels wide by 200 high.

Please tell me if there is an easier way to do this.

Thanks,

Mike


Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Sorry, you have to make an array of all colors you need and seek every pixel. But probably you don't need to know really EVERY ONE. Maybe only some there and there like a holed grid.

+ + + + + + + + + +
  + + + + + + + + + +
+ + + + + + + + + + 
  + + + + + + + + + +
+ + + + + + + + + +

I am pretty sure someone already made a UDF for that. Did you try searching?

Edited by ezzetabi

Share this post


Link to post
Share on other sites

Yea, I was searching for quite a while but if you search on Pixelsearch or PixelcheckSum you get hundreds of hits. hmm, I wonder if I can do a google search on the forum???


Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Probably this is what you need:

Findpixelrect.

Found in about 2 minutes, :idiot: .

Edit: of course Larry is faster. :D

Edited by ezzetabi

Share this post


Link to post
Share on other sites

Wow, Thank you Larry and ezzetabi, from first glance this is exactly what I need.

I was only searching in the V3 Support area :idiot:


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