Jump to content
UBot Underground

Sequencing Bot


Recommended Posts

I'm Newbie (disclaimer), and I appreciate your help in advance.

 

I finished scripting a scrape code with lots of help from you and uBot customer service.  Thank you.

 

I am now pulling a part the entire script section by section to try to understand what was done by reviewing videos, code views and I've written my plan for what I wanted from the script.  

 

I have a few questions that I hope will help me with the big picture.  I don't quite understand the sequencing that the script finally took.  For example, the clear list is done within a loop that started the whole sequence. 

 

Does anyone have any advice on learning how to know what comes where in your sequencing of the script?  Any tutorials on that?

 

I know trial and error and learning the features are all part of it, but it's still seems illogical to clear a list before I started the list, so any help on how to sequence within uBot would be greatly appreciated.

 

Also, one other thing. What does #index (variable), message -1 means?  Does that mean we are starting that variable loop at a -1 position versus a zero? and why?

 

Again, thank you for any insight that you may have.

Link to post
Share on other sites

Your logic comes from the logical order of the process of your task.

 

Clear List - http://wiki.ubotstudio.com/wiki/Clear_List

 

Ubot wiki - http://wiki.ubotstudio.com/wiki/Main_Page

 

VIds - http://www.ubotstudio.com/tutorials  #2 for clear list

 

for the index question:

 

look at a loops video sjould be easy to find by reading the video description.

 

In programming, list start a 0 not 1 as a human might think.

 

Computers are zero based so often they begin at 0.

 

Looping through table or list you start the index at -1 to start at 0, other wise you will skip the first item and then ultimately exceed the list/table you are looping.

 

The increment will increase that index at the point of insertion, usually if starting at -1 at beginning of loop, else at the end.

 

HTHelps,

 

CD

Link to post
Share on other sites

Your logic comes from the logical order of the process of your task.

 

Clear List - http://wiki.ubotstudio.com/wiki/Clear_List

 

Ubot wiki - http://wiki.ubotstudio.com/wiki/Main_Page

 

VIds - http://www.ubotstudio.com/tutorials  #2 for clear list

 

for the index question:

 

look at a loops video sjould be easy to find by reading the video description.

 

In programming, list start a 0 not 1 as a human might think.

 

Computers are zero based so often they begin at 0.

 

Looping through table or list you start the index at -1 to start at 0, other wise you will skip the first item and then ultimately exceed the list/table you are looping.

 

The increment will increase that index at the point of insertion, usually if starting at -1 at beginning of loop, else at the end.

 

HTHelps,

 

CD

Yes it helps.  Thank you for your time.

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...