-
Content Count
102 -
Joined
-
Last visited
-
Days Won
4
Posts posted by magoo
-
-
Aymen's plugin is probably one of THE most useful (and at the same time very complex) plugin in UBS world...
And Aymen is not only an excellent developer, but also a great vendor who cares about his customers.
Try to ask his help directly, he may solve your issue in a few minutes...
Hope this helps...
Steve, I think you may have mistaken the OP, LazyBotter was sharing code to help the community, not posting an issue..
-
I made an example so you can see how next list item works. You should be able to adapt the same thing to any bot. Where I have loaded html for you to see how it works, just replace with your image upload code.
clear list(%image) add list to list(%image, $list from text("Image_1 Image_1 Image_3 Image_4", $new line), "Delete", "Global") loop($list total(%image)) { set(#image, $next list item(%image), "Global") load html(#image) }
-
No but you can scrape the URL and then set it to a variable
-
Thanks mate
-
If two threads need to start from the same list position but from different lists then why not assign the list position to both threads before they start,
rather than use next list item. That way you will not rely on chance by using your 5 second wait, because you have assigned the list position to both threads. you will know thread 1 is working on list A at position1 and tread 2 is working on list B at position1
-
I have to agree with both comments above. Building a business online is a job and one that takes time, a lot of it! Anybody who tells you, you can make big money with no experiences and no out lay is full of shit.
If you need money now, then uBot is not the answer, nor is any other online venture with the promise of great wealth.
-
If each tab are placed in their own define they can be run from one central control panel, in other words one tab can control all
-
If you show us the page with the button and drop down menus, I'm sure someone will be able to help.
- 1
-
. Why do you need the same define multiple times? Just delete the cloned defines. It doesn't matter what tab you are in you can call a define from any tab.
If your idea was to clone and modify the defines in the second tab then yes renaming them will work. No two defines can have the same name.
-
Why not just delete the clone? It will be because everything is set to gloable and you will have defines in each tab by the same name with identical lists and variables, as you call a define from one tab it will be firing the define in the second tab as well, causing the bot to get confused.
-
Why don't you scrape the data on ebay rather than from a site using there api?
-
Thanks TJ..
very useful package, I have a few projects in mind for some of these. And your list of extras yet to be released look pretty slick, especially this FREE UP MY MEMORY!!
-
-
I made an autoresponder bot. I want to be able to change the message it sends out once the bot is compiled, altering the message with a ui block text. However, I need to use other variables with my reply.
Is there anyway to put in the other variables inside the ui block text?
for example i want to use a variable that address the recipient by his/her first name. So i have a #firstname variable..
How do I enter #firstname variable into the ui block text?
Why didn't you open your thread with a clear explanation like this??
-
so, say each line in the ui is set to a different variable?? is that what you need?
-
The ui block text is the variable, whats inside it is the value of the variable. Make sense?
-
I don't see any errors when running the code you posted above. I take it that the actual code that is receiving an error is different than this code?? usually you would increment the loop after it has run its cycle, not as it starts the cycle.
-
Nice package and great value, thanks Jane!!
-
I get the same message as you did. I even get it if I navigate to the page from my default browser chrome. If I change user agent I also get the second page that you did.
-
You need to explain better what you need then, because all you had to do was add the functions from your own test bot above.
If you are trying to achieve what your thread-error-example.ubot does, then this code has been modified to perform the tasks as per your bot. Each line of your text file is performed in a new thread with a max of ten threads open at once. Look at the logic and you will be able to add to it.
ui open file("some file with data in it - mine is comma separated", #mydatafile) set(#readmydatafile, $read file(#mydatafile), "Global") clear list(%mydatafileiread) add list to list(%mydatafileiread, $list from text(#readmydatafile, ","), "Delete", "Global") if($comparison($list total(%urls), "<=", 10)) { then { set(#num threads, $list total(%mydatafileiread), "Global") } else { set(#num threads, 10, "Global") } } set(#number accounts, $list total(%mydatafileiread), "Global") set(#num created, 0, "Global") set(#used threads, 0, "Global") loop(#number accounts) { loop while($comparison(#used threads, ">=", #num threads)) { wait(1) } loop process() } define loop process { increment(#used threads) increment(#num created) registration procedure() } define registration procedure { wait(1) thread { in new browser { registration code here() decrement(#used threads) } } } define registration code here { if($comparison(#num created, "<", #number accounts)) { then { ubotplay($next list item(%mydatafileiread)) } else { } } } define ubotplay(#some info from data file) { navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") wait for element(<class="social_connect">, "", "Appear") type text(<username field>, #some info from data file, "Standard") click(<value="Submit">, "Left Click", "No") wait(2) }
-
Here is an example for you,
navigate("http://www.google.com", "Wait") wait for element(<id="footer">, "", "Appear") type text(<name="q">, "free bots", "Standard") click(<name="btnG">, "Left Click", "No") wait for element(<id="foot">, "", "Appear") clear list(%urls) add list to list(%urls, $list from text($scrape attribute(<outerhtml=w"<a href=\"*\" class=\"*\" onmousedown=\"return rwt(this*)\">*</a>">, "href"), $new line), "Delete", "Global") if($comparison($list total(%urls), "<=", 10)) { then { set(#num threads, $list total(%urls), "Global") } else { set(#num threads, 10, "Global") } } set(#number accounts, $list total(%urls), "Global") set(#num created, 0, "Global") set(#used threads, 0, "Global") loop(#number accounts) { loop while($comparison(#used threads, ">=", #num threads)) { wait(1) } loop process() } define loop process { increment(#used threads) increment(#num created) registration procedure() } define registration procedure { wait(1) thread { in new browser { registration code here() decrement(#used threads) } } } define registration code here { if($comparison(#num created, "<", #number accounts)) { then { goto url($next list item(%urls)) } else { } } } define goto url(#url) { navigate(#url, "Wait") wait for browser event("Page Loaded", "") wait(10) }
-
Using my example above, Set your text in the #anchor variable and then add the #anchor variable then place the #hyperlink variable in the type text
-
I don't see Another Cute girl anywhere in the code above, reckon you could narrow down what we are looking for?
-
add list to list instead of item to list. You may have to loop through each list item
- 1
I want to move to $next list item
in Scripting
Posted
VB is just skinning a cat a different way, the simple code i posted above will do exactly what you want and will only post each list item once.
If you only want to flow from the start to finish of a list and only visit each list item once, then next list item works just fine. Set your list item to a var and it can be used anyware within the loop. Simply use list total to get number of loops