Jump to content
UBot Underground

How To Make Ubot Visiting List Position Number


Recommended Posts

Hello, anyone can help me to solve how to make ubot visiting list from text file from number to number. If I have 100 list from one text file and I want to choose from number 5 to number 10 only I visit.

 

ui open file("your file"#open)
clear list(%urls)
add list to list(%urls$list from file(#open), "Delete""Global")
set list position(%urls, 0)
loop($list total(%urls)) {
    navigate($next list item(%urls), "Wait")
    comment("your code goes here.")
}

 

thank you

Link to post
Share on other sites

You can set list position to be the line number you want - 1 and then loop for the maximum line number - minimum line number.

 

So if you want line 5-10 then you would do 5-1 = 4 so list position 4 then 10-5 = 5 so 5 loops.

 

The reason is that the list starts counting at 0 and not 1. So keep this in mind, list position 4 is going to be line 5 in the file.

 

Here is your example but using what I've said above:

ui open file("your file",#open)
clear list(%urls)
add list to list(%urls,$list from file(#open),"Delete","Global")
set list position(%urls,4)
loop(5) {
    navigate($next list item(%urls),"Wait")
    comment("your code goes here.")
}
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...