Jump to content
UBot Underground

Denethor

Members
  • Content Count

    48
  • Joined

  • Last visited

Everything posted by Denethor

  1. Using the built in email verifier the script crashes randomly with this error. simple code, so not much to debug on my end. connect to mail server("IMAP With SSL","userremoved@gmail.com","passwordremoved","imap.gmail.com",993) { verify emails("Love .*","https://.*","Processed Verification Emails") } So it logs in successfully to gmail, downloads all the email headers (hundreds match the query above) and looks for any with a subject that starts with "Love " and any thing after it (the .* wildcard). If it finds a subject that matches it clicks the first link it finds (the only one i
  2. I added a variable to the script and track it myself, but it seems there should be a way in Ubot to track this. It increments the variable in the loop that spawns the thread and then the last line of the defined thread is to decrement that same variable. Then I added a new loop in my code that just waits until the variable =0 before continuing on. Crude, but it works
  3. 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
  4. yes, as I stated above the code removed from the thread runs just fine. yes, I wrote it. If I remove all the comments and alerts the error goes away. Here is the current code, the only change is I moved the saving of the log file to outside the main loop since there is no need writing it unless the loop completed. I changed all my pathing to C: for this example, that is not my real path, I don't save to the root of my drive I also included all the non threaded parts here now. clear cookies create table from file("C:\\SpecLog.txt",&Login) set(#StepLog,0,"Global") set(#StepNew,0,"Global")
  5. Here is a basic script I tried to thread to speed up the time to process all records. It's not resource issue as I can limit it to one thread at a time and it still doesn't work in a timely fashion. The same code, not in a thread, saves instantly. Thread it and it takes 10 to 14 sec for the file to appear in the folder after the file is actually downloaded. 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)) increment(#a)
  6. So lists are local and tables are global?
  7. the line: set(#TotalRows,$subtract($table total rows(&myTable),1),"Global") Fixes a problem I had with the $rand command. I originally had set the index to be simply a random number between 0 and $table total rows(&myTable) That however does not work because $table total rows(&myTable) does not account for tables starting at position 0, so it would randomly create an empty data set at the end of the file with nothing but the true,$now The rest should be pretty self explanatory, if anyone has questions, feel free to ask.
  8. Here is the solution I came up with. When "WorkToDo" can't find any records that haven't been used, For this example I just had it end the script, in my actual script I have it reset all records "Used" flag (Table column 2) to false, so next time it runs the whole list is available again. &myTable contains 3 columns for this example. 0=Name,1=UsedFlag(true or false),2=TimeStamp of last use You'll have to make you sample csv if want to test it out. Something like this: one,false,05/24/2018 13:27:29 two,false,05/24/2018 11:50:36three,true,05/24/2018 13:31:54four,false,05/24/2018 11:47:58 cl
  9. 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?
  10. I have many embedded loops to check for multiple possible errors. In each of those loops there are If/Then to detect which possible error it encountered and how to recover from that. To which the last part of the "then" needs to be stop executing this loop and go back to the last step. I see no way to do this in ubot. Other scripting apps I've used have commands like "Exit Loop" or "End Loop" to stop processing the rest of the loop. If there are 10 possible errors and I find the error on the first try, why even try the other 9 and waste all that time? The below is basically how it goes with mo
  11. That only accounts for entries where the last time used is blank ($nothing). The OR part of that was look at the current date/time and compare it to the stored one and only pick it if the date is blank OR time diff at least X minutes. I want to use things from the list randomly, but only so many times per given time frame. Say for instance a list of proxies. I want to choose one randomly (so there is no pattern of use in the server logs I'm visiting), but don't want to use the same proxy unless the last time it was used was more than say 5 minutes ago (that time frame can change based on appli
  12. I have a list in ubot that I also store as a table (because there is no random table cell command). The 0 column of the table is the same as the list. The 1 column of the table is the TimeStamp it was last used. I use the $random list item to find a random item in the list Then I find its list position and store that in a variable #pos Here comes the part I can't figure out (and I may be way over thinking this). All I want to do is say something like this: IF table cell #pos,1 is empty (never been used) OR hasn't been used today (preferably a more precise measure like x minutes) Then save t
  13. In Windows 8+ the command has changed slightly, you no longer need the cmd /c shell("RD /Q \"{#Folder}\"") and if the folder is not empty then you need to add the /s option like this shell("RD /Q /S \"{#Folder}\"")
  14. The issue might be more in the CMD line in Windows 8+ set(#FileSize, $plugin function("Advanced Shell.dll", "$shell batch hidden", "for %I in (C:\\Windows\\System32\\notepad.exe) do @echo.Size of \"%I\" is %~zI bytes"), "Global") ​That works, the example given above by arunner26 did not. Had to remove the first "echo off" and add @ to the second echo. Personally I removed all the text too as I wanted the result to be an integer I could use in my own way, so mine looks like: set(#FileSize,$plugin function("Advanced Shell.dll", "$shell batch hidden", "for %I in ({#CSVfilename}) do @echo.%~
  15. Any way to make this work in Ubot 5.9.44 ? I assume the free advanced command plugin no longer works, the result is the set variable equals just what I type in for the cmd line to be executed.
  16. If you switch to Chrome 21 it works and then sometimes switching back to 49 works but usually the browser crashes. only one time has Ubot actually caught the crash and displayed it like below, usually it just hangs the script and you have kill the task. Oddly it usually never hangs if you step through the code, but running or compiling and executing will surely hang. This is Ubot 5.9.44 running on Windows 8.1 Pro fully up to date.
  17. I registered to post bugs but have not been approved yet.
  18. Someone reported this as bug and they said it was not a bug, It obviously IS still a bug.
  19. Script worked fine in my old 5.x (I forget what version I had but it was before "stealth") Now the script just hangs on compiled bots when it gets to that command. In step through, in the editor, it simply does nothing and goes to the next step.
  20. The built in Delete Folder command does bring up a pop up dialog and the script can not continue. delete folder("C:\\Users\\xxxxx\\xxxx\\Documents\\temp") Results in a confirmation dialog to delete yes or no. Nothing automated about that, you would have to have another thread running constantly looking for that dialog box and clicking yes. There must be a better way to suppress that dialog.
  21. I tried to replicate what you were trying to do. Did you simply try the "save downloaded file" browser command? wait(5) save downloaded file("C:\\Users\\SkyDrive\\Documents\\metrics.csv")
  22. Did you ever find a solution to this? I am having the same issue. I think the real issue is you are trying to have UBot click on it's own Save As dialog. You would probably need to spawn a separate thread before clicking the download button that looked for the Save As dialog from the download button and filled in the file name and clicked Save.
  23. Any chance you'd be willing to share your script? I'm trying to do something very similar with a site http://www.fasttech.com I want to input a certain category and make a table with the Product title, Desc, and a link to any photos. Thank you,
  24. Happens for me as well, XP and Vista, version 4 and version 5, complied scripts once they get the error stop working (unlike in the old days it would recover once you closed the error). I get a browser crash (as noted by others above) just opening ubot studio, no script loaded even. Doesn't always happen right away either
  25. Thank you, where do I get " bonus package is full of source codes that uses $http post and $http get"
×
×
  • Create New...