Jump to content
UBot Underground

Wait finish but if it takes more than X seconds go loop


Recommended Posts

The topic titles pretty much sums it up.

 

What I am trying to do is tell ubot to run a wait finish command, but if it is still waiting for the page to finish after 5 seconds keep going.

 

This would inside a loop, so the proces would repeat.

 

Imagine cycling through a list of URLs and the checking to see if they conform to a certain criteria.

 

This is what is ruining my mind at the moment.

Link to post
Share on other sites

What I am trying to do is tell ubot to run a wait finish command, but if it is still waiting for the page to finish after 5 seconds keep going.

 

This would inside a loop, so the proces would repeat.

 

Imagine cycling through a list of URLs and the checking to see if they conform to a certain criteria.

 

set #criteria = false
set #numberOfTrys = 3
set #counter = 0
while (#criteria = false and #counter < #numberOfTrys)
 wait finish (5)
 if (criteria met)
  then
    set #criteria = true
 inc #counter
end while

Link to post
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...