Jump to content
Macro Express Forums

Continue to Next Repeat Iteration?


bilofsky

Recommended Posts

You can do things like this…

 

//
// Check colour of each pixel along a vertical line, to a maximum of %N1% pixels
//
Repeat with Variable: Repeat %N1% times
 Mouse Move: 0, 1 Relative to Last Position
 Get Pixel Color from Beneath the Mouse into %N99%
 If Variable %N99% Equals "6050636" // Colour of the 1-pixel wide border along top and bottom of the column
   Repeat Exit
 End If
End Repeat

Link to comment
Share on other sites

Alan's suggestion is good but stops the repeat loop. If you want to skip macro commands for certain conditions but continue with the repeat loop you can do something like this:

Repeat with Variable: Repeat %N1% times
 If Variable %N99% Not Equal "0" // (any condition you choose)
   <do other macro commands here>
 End If
End Repeat

As Paul mentioned, Macro Express Pro has a Continue command to make this easier.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...