bilofsky Posted January 7, 2011 Report Share Posted January 7, 2011 Does Repeat have a way to do a Continue or Next command? In the middle of a Repeat loop, I want to skip the rest of the commands and go to the next iteration of the loop. Any way to do this? Quote Link to comment Share on other sites More sharing options...
acantor Posted January 7, 2011 Report Share Posted January 7, 2011 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 Quote Link to comment Share on other sites More sharing options...
paul Posted January 7, 2011 Report Share Posted January 7, 2011 Does Repeat have a way to do a Continue or Next command? In the middle of a Repeat loop, I want to skip the rest of the commands and go to the next iteration of the loop. Any way to do this? Only in Macro Express Pro. Quote Link to comment Share on other sites More sharing options...
kevin Posted January 8, 2011 Report Share Posted January 8, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.