Sign in to follow this  
Followers 0
net2dio

Repeat an action

9 posts in this topic

Hello ...

Send("Nanme")
Send("eMail")
[\code]


how to make this code to repeated 1000 times???

thank you


            
        

        
            
                

    
        
            
        
    


            
        

        
            
                
                
                
            
            
                
            
        
        
    

    
        
            Share this post
            
Link to post
            
            
            

            
                Share on other sites
                

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

            
        
    


    

                    
                        





(adsbygoogle = window.adsbygoogle || []).push({});




                    
                
                    
                    
                    






    
    
        
JohnOne   

    
        
    
             1,541
    
        
    

        
            
                Number #1
            
            

            
                

    
        
    

            
            Active Members
            
            
                

    
        
    
             1,541
    
        
    

                17,218 posts
                
                

            
        
    
    
        


    

    
        
            
            
                
            
            
        

        
    #2 · 
            Posted 
            
            
            
        
    

    


            
        
            

Global $ImALouseyStinkingSpamRat = 1



While $ImALouseyStinkingSpamRat

      Send("Nanme")

      Send("eMail")

      $ImALouseyStinkingSpamRat += 1

      If $ImALouseyStinkingSpamRat = 1000 Then $ImALouseyStinkingSpamRat = False

WEnd


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Wouldn't that run 999 times? ;)

Share this post


Link to post
Share on other sites

Thank you, thank you, thank you

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Wouldn't that run 999 times? ;)

you're right, I saw this, but can make If $ImALouseyStinkingSpamRat = 1001

Edited by LeuMas

Share this post


Link to post
Share on other sites

This should be For/Next, not While/Wend.

It's like 1+3-4+7-8+3 = 1+1 with For/Next on the right side.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Given his JohnOne's experience and the variable naming, I think it was a conscious choice. ;)

Share this post


Link to post
Share on other sites

Yes, it was a good joke.


♡♡♡

.

eMyvnE

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