Wolfiesaxah Posted December 21, 2014 Share Posted December 21, 2014 Hello, is there a way to skip a loop and go back to the first part of the loop? It's hard to explain but here's my sample code: While 1 Local $catchbox = MsgBox($MB_OKCANCEL, "Question", "Continue processing?", 0) if $catchbox == 2 Then WEnd Else ;"Processing" scripts here.... EndIf WEnd Basically my auto-it opens web pages or websites from a list. It will be opening 300 webpages and processing each. When it opens Page 1 it does some scripts then goes back to start of the "While" loop to open another page, so on and so fort. The problem is if the page is blank or does not contain the info to process. I need it to skip processing the blank page but continue opening the other pages. I tried using WEnd thinking that returns the focus back to line 1 but it gave me error for using WEnd with no matching While. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 21, 2014 Developers Share Posted December 21, 2014 Helpfile is your friend. You probably are looking for: ContinueLoop Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jchd Posted December 21, 2014 Share Posted December 21, 2014 That, or basic logic: While 1 Local $catchbox = MsgBox($MB_OKCANCEL, "Question", "Continue processing?", 0) if Not ($catchbox == 2) Then ;"Processing" scripts here.... EndIf WEnd This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Wolfiesaxah Posted December 21, 2014 Author Share Posted December 21, 2014 jchd in my confusion and rushing to finish this prototype in time I forgot I could use a script as simple as that. Thanks guys, both your answers worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now