Search the Community
Showing results for tags 'thread'.
-
Is there anyway to detect that all threads have finished before the main script continues? I have a script that spawns 21 threads, two at a time, with a minute pause between each set of two (just so everything isn't launching at once). loop while($table cell(&NEW,#a,0) != "") { loop(2) { MyLogin($table cell(&NEW,#a,0), $table cell(&NEW,#a,1), $table cell(&NEW,#a,2), $table cell(&NEW,#a,3), $table cell(&NEW,#a,4), $table cell(&NEW,#a,7)) increment(#a) } wait(60) }The problem I have is some threads take longer to complete than others and d
-
If I create a table or list in a thread, is that local to that thread or global? I have a multi threaded bot that scrapes a page and stores stuff in a temp list to compare it to a known value I'm looking for. The issue is I think the temp table is being overwritten by the other threads so the compare fails because its now being compared to some other threads expected outcome. IF its global and not local, how can I get around that? I don't see how I can generate a random table/list name and know what to use later?
-
I tried lot and but no use,,I could not make the bot multi threaded can anyone please help me.. below is my code..this is simple data picked from csv file..I tried code given http://network.ubotstudio.com/forum/index.php/topic/10042-new-v4-tutorial-multi-threading-example/ but all thread windows used same user details and login to yahoo from same row.. ui open file("Accounts",#GmailAccount) create table from file(#GmailAccount,&Gmailaccount) ui text box("Starting Point",#StartingPoint) set(#row,#StartingPoint,"Global") add list to list(%Use this proxy,$list from file(#proxy),"Delete"
-
Hello to all I am getting a little frustrated, and wondered if someone can confirm is working or not?! Ubot 4 and normal multithread is fine and working for me. Ubot 4 and Smart Threading is also working fine. Now I want to move to Ubot 5, mainly due to the fact it is faster to work with.... Up until now I have been writing bots in Ubot 5, and moving code to ubot 4 after written most code... So with the new Spawn Thread thought would do some testing... And testing not too good There is no designated thread ID, meaning can not control the threads properly Setting thread ID within t
-
Ok so im having a big issue, ive been trying to use thread spawn to make accounts but when i use the account data to generate usernames, passwords, emails it uses the same info on each thread, ive also tried changing it to local instead of global but no luck, even used account reset but maybe im placing it in the wrong position idk, but what i am trying to do is make a simple account creator with the account data parameters via thread spawn. Ive been stuck on this for hours now and its driving me crazy!!!!!!!!!
- 8 replies
-
- mutli threading
- threading
-
(and 5 more)
Tagged with:
-
Hi, This is the first time I try to build a bot that can multi-thread and everything is still very confusing to me. Here's the gist of the bot I'm trying to build: So I have a list of several thousand items to analyze. I want to analyze 10 items at a time. (10 items will not be finished at the same time) . I want when an item finishes, the bot moves on to the next item that hasn't been analyzed on the list until the end. Please suggest the overall structure of this multi-thread bot. And it'd be awesome if anyone can explain how to use thread spawn or point me to a tutorial. Thank you very
-
HI All, This is the first time I ask to ubot community. my bot is feeding a lot of url from mysql, do filtering and mark it as DONE in mysql. plugin command("DatabaseCommands.dll", "connect to database", "server=127.0.0.1;uid=myid; pwd=mypass; database=mydb; port=3306; pooling=false") { plugin command("DatabaseCommands.dll", "query with results", "SELECT * FROM table_name WHERE status = \'\';", &my_table) } loop while($comparison($table total rows(&my_table),"> Greater than",0)) { set(#id,$table cell(&my_table,0,0),"Global") navigate($table cell(&my_table,0,1),
-
Can somebody please shed some light onto UBot's stange looping / threading behavior? When I run the following code, I get three alerts: 1, 2, and 3. (Strange that it's not 0,1, and 2, but that's besides the point). set(#loopCounter,0,"Global") loop(3) { thread { alert(#loopCounter) } increment(#loopCounter) } However, when I run the following code (I added "in new browser") my three alerts are all "3" set(#loopCounter,0,"Global") loop(3) { thread { in new browser { alert(#loopCounter) } } increment(#loopCounter) } I am tryin
-
I've read many posts on the topic and still think it could use some explanation or official documentation. I think this is how they work, but would appreciate confirmation. LOCAL VARIABLE IN A: 1. "Define" command/function - stays local and only commands inside this container can interact with the variable's value, unless you pass or return it. 2. A 2nd "define" command within another "define" command - even though this 2nd custom command is inside the top "defined" command, the local variables within the top container are not available to the 2nd command unless you pass the local va
- 4 replies
-
- Multithread
- Thread
-
(and 2 more)
Tagged with:
-
I decided to test out the thread command. When I run the script below it seems to work okay. Watching the Debug window show the #i variable is the same as the %zlist list. But, when I run script several times in quick succession I notice some time there is a discrepancy See the attached image. As you can see the code is very simple so there doesn't seem to be much room for error, but obviously I am doing something wrong, somewhere .... OR ... is it that the thread command isn't working right? clear list(%zlist) set(#i, 0, "Global") loop(20) { loop(5) { runMe(#i) increm
-
[SIMPLE PROOF] Variables are not thread-safe in Ubot 4/5
Marton posted a topic in General Discussion
Dear Ubot Team! This thread was opened in reference to my open letter to you: EDIT: I sent the letter to Seth personally, since it seems to have been deleted from the forums. This was not my idea at all, I'm just trying to spread the word, and I hope I'll be able to reference the right users (and topics) here. If I'm not mistaken this issue was first brought to our attention by UbotDev here: http://www.ubotstudio.com/forum/index.php?/topic/15122-must-read-threading-doesnt-work-as-expected-tested-in-v4/ He was also the first who was able to provide a fix for this (can't thank you enough- 15 replies
-
- 2
-
- thread safe
- thread
-
(and 2 more)
Tagged with:
-
Hi guys oki I want to pay someone to make this for me because the way I'm doing it right now is way to long and frankly stupid I've used so many if else it's crazy Oki this is how I have my bot set up I have 70 sites they are under define command every individual site so I have define site1.com define site2.com etc the variables are collected from a csv file where I have all the info the csv file is set like this site1.com(which is the name of the define ) and then | username|password|title|description|text|etc So what I need is this if the csv file has 40 lines every line is referring to on
-
I recently upgraded from PRO to the DEV version and have a question. In the pro version I would use threads and new browsers. With the DEV version is it possible to use threads and tabs (that can be hidden) instead? For example, my code currently spawns a new thread and a new browser in the thread and repeats this for several processes. Could I now have my code spawn a new thread and inside that new thread a new hidden tab for these processes instead?
-
Hello Everyone, I have just written a bot which would run in multithread manner, in each thread different browser and in each browser of this thread, we set a proxy. Am trying to achieve such that each of the thread should be running with its own proxy. But when setting a proxy credential, it gets set for the whole bot and not for individual thread. How can i achieve individual proxy get set for individual thread? Is this something possible in ubot? Thanks Liz
-
Hi Guys I made this bot that will go to hidemyass.com, scrape the proxy list, and then run simultaneous threads (based on TJ's script). The only thing it doesn't do is pickup bad/dead proxies. I thought scraping them straight from HMA would work, but not too well, maybe 50% failure rate. Any suggestions welcome :-) ui drop down("Thread Count", "2,3,4,5,6,7,8,9,10", #num threads) comment("set total number of runs, I just made it 24 for testing purposes") set(#number accounts, 24, "Global") set(#num created, 0, "Global") set(#used threads, 0, "Global") loop(1) { navigate("http://www.hide
-
Hey guys. I would appreciate some help. I have a list of emails and I want to send them 10 at the time How can I do that with the thread I tried many times but with no success