AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Variable for number of loops?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
newb
Guest





PostPosted: Thu Mar 10, 2005 11:14 am    Post subject: Variable for number of loops? Reply with quote

is there a variable for the number of loops?
example
Code:
Loop,100
{
    msgbox,,Title,%A_Index% of %thevariableineed% ;what ever that is
}

So i can enter a variable for the 100 loops? if any of that makes sense?
like.. %loop% or something instead of putting "100"?
thsi si probably a really simple thing ... but simple things are painful
thanks for any help
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Thu Mar 10, 2005 12:16 pm    Post subject: Reply with quote

No, so it's probably best to assign 100 to a variable and use it in both places:

LoopCount = 100
Loop %LoopCount%
...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group