Jump to content

Finding a picture on the screen


Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...