Sign in to follow this  
Followers 0
b0x

Help with PixelSearch

4 posts in this topic

#1 ·  Posted (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 by b0x

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

PixelChecksum

--------------------------------------------------------------------------------

Generates a checksum for a region of pixels.

PixelChecksum ( left, top, right, bottom [, step] )

If a pixel changes it'll know.

Edited by backstabbed

tolle indicium

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by b0x

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by b0x

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