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 

Pathetic basic loop question...

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



Joined: 16 Mar 2008
Posts: 93
Location: Brooklyn

PostPosted: Thu Oct 01, 2009 4:36 pm    Post subject: Pathetic basic loop question... Reply with quote

This should be easy, but I've got a brain fart moment. I'm running a hotkey which has a loop and that loop has conditions. If the condition is not met, I want it to execute a series of commands and then I want it to begin a New loop. That is, if it was on loop 8 of 20 it should begin as 9 of 20. Ideas?

Code:
Loop 20{
Send, ABCD
If (Color = "red")
   {
   MsgBox, Great
   }
else {
; Here, I want to end the current loop and have it begin a NEW loop
   }
Send, This string would not be sent if the condition is not met
}

_________________
Back to top
View user's profile Send private message
Z_Gecko
Guest





PostPosted: Thu Oct 01, 2009 4:46 pm    Post subject: Reply with quote

check the help for continue
Back to top
Sergio



Joined: 16 Mar 2008
Posts: 93
Location: Brooklyn

PostPosted: Thu Oct 01, 2009 5:03 pm    Post subject: Reply with quote

HAHAHH! I figured it would be easy!. That's exactly what I needed. Thank you!
_________________
Back to top
View user's profile Send private message
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