b0x Posted January 25, 2007 Share Posted January 25, 2007 (edited) I need help with the PixelSearch. I want my programm realise it when the one screen (this) changes to the other (this). I tried it with PixelSearch. But it doesnt work. Which pixels would you check? Is there maybe another way? Tips would be nice.while 1 PixelSearch( 296, 461, 473, 506, 0x1A1511) If Not @error Then ExitLoop WEnd MsgBox( 0, "Ok", "Screen has changed" )greez b0x Edited January 25, 2007 by b0x Link to comment Share on other sites More sharing options...
Glyph Posted January 25, 2007 Share Posted January 25, 2007 (edited) PixelChecksum -------------------------------------------------------------------------------- Generates a checksum for a region of pixels. PixelChecksum ( left, top, right, bottom [, step] ) If a pixel changes it'll know. Edited January 25, 2007 by backstabbed tolle indicium Link to comment Share on other sites More sharing options...
b0x Posted January 25, 2007 Author Share Posted January 25, 2007 (edited) thank you, ill try this and then report you. EDIT: Hmm, but if the curser crosses the field or another point in the main menu is chosen it will leave the loop too. Edited January 25, 2007 by b0x Link to comment Share on other sites More sharing options...
b0x Posted January 25, 2007 Author Share Posted January 25, 2007 (edited) okay i did it, i gonna tell you how for those who maybe will have or already have a problem like this. I wrote a short program to get the checksum of a part of the screen (its the A in "Account name" like on this screen here). And then i just wrote like this.while 1 if PixelChecksum( 306, 321, 318, 332 ) = 2845456257 Then ExitLoop EndIf WEnd MsgBox( 0, "Ok", "Screen has changed" )greez b0x Edited January 25, 2007 by b0x Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now