Sign in to follow this  
Followers 0
Orgins

PixelChecksum in a do-until loop?

5 posts in this topic

I want a pixelchecksum in a do until loop but When the pixelchecksum changes I want it to end the loop and do 3 or 4 lines of code(or run a script with them lines then contune were the first script (After the do until)). How would I do that?

I know how to do a pixelchecksum in a While/WEnd and how to do a do/untill but I can't get them working together.


I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites



$StartingCheckSum = PixelCheckSum(etc...)
While PixelCheckSum(etc...) = $StartingCheckSum
    ;Do stuff
WEnd


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

That might help me I’ll have to play around with it. I wanted to explain what I want a bit more.

$i = 0                    
Do                      
   $i = $i + 1                  
      Sleep($ShortSleep)             
      MouseClick("left", 15,  604, 2)   >---I just want to added a pixelchecksum if the pixel 
        Sleep($ShortSleep)         changes then end loop and do 3 or 4 lines of code
        Send ("{ENTER}")           If it doesnt jsut do the loop into $i = 13
    until $i = 13
Edited by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites

I think its working. But how do I add the extra lines of code I want it to do if pixelchecksum changes?


I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

The way your Do...Unil is setup you might as well use For...to...Next

For $i = 0 to 13                   
      Sleep($ShortSleep)            
      MouseClick("left", 15,  604, 2)   ;>---I just want to added a pixelchecksum if the pixel
        Sleep($ShortSleep)           ;changes then end loop and do 3 or 4 lines of code
        Send ("{ENTER}")           ;If it doesnt jsut do the loop into $i = 13
    NextoÝ÷ Ø­¶°k,¨º·(^±Êâmë"µ«­¢+ØÀÌØíA¥á±
½±½ÉôA¥á±
¡­MÕ´¡Ñ¸¸¸¤()¼(ÀÌØíA¥á±
½±½ÉôA¥á±
¡­MÕ´¡Ñ¸¸¸¤(M±ÁìÄÁôíIÕÌ
ATÕÍ°½ÍÑ¥±°Ý¥±°Éո͵½½Ñ¡±ä)U¹Ñ¥°ÀÌØíA¥á±
½±½É±ÐìÐìÀÌØíA¥á±
½±½É()5½ÕÍ
±¥¬ ÅÕ½Ðí±ÐÅÕ½Ðì°ÄÔ°ØÀаȤ)M±À ÀÌØíM¡½ÉÑM±À¤)M¹ ÅÕ½Ðíí9QIôÅÕ½Ðì
Edited by Rad

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