AutoHotkey Community

It is currently May 26th, 2012, 11:58 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: October 1st, 2009, 5:36 pm 
Offline

Joined: March 16th, 2008, 6:48 pm
Posts: 161
Location: Brooklyn
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
}

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2009, 5:46 pm 
check the help for continue


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2009, 6:03 pm 
Offline

Joined: March 16th, 2008, 6:48 pm
Posts: 161
Location: Brooklyn
HAHAHH! I figured it would be easy!. That's exactly what I needed. Thank you!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, hyper_, Leef_me, Pulover, RaptorX, rbrtryn, XstatyK, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group