Jump to content

Recommended Posts

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
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

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
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

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
×
×
  • Create New...