Jump to content
UBot Underground

Denethor

Members
  • Content Count

    48
  • Joined

  • Last visited

Posts 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 in the email) that starts "https://"
    Then it deletes the email once it has been clicked.
     
    Sometimes it processes one email and craps out with the error, sometimes it does 50 or more before it throws the error.
    "length cannot be less than zero. Parameter name: length"
    The function is pretty useless if it doesn't work and it can't recover from an error.
     
    Any thoughts on what "length" its looking for?
     
  2. 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 during testing I've seen the script start to move on to the next step in the process before all the threads had finished. Which is an issue because the next step needs data that is being retrieved from the threaded part.

  3. 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")
    loop while($table cell(&Login,#StepLog,0) != "") {
        if($table cell(&Login,#StepLog,5) = "false") {
            then {
                add list to table as row(&NEW,#StepNew,0,$plugin function("TableCommands.dll", "$list from table", &Login, "Row", #StepLog))
                set table cell(&NEW,#StepNew,7,#StepLog)
                increment(#StepNew)
            }
            else {
            }
        }
        increment(#StepLog)
    }
    add list to table as row(&NEW,#StepNew,0,$plugin function("TableCommands.dll", "$list from table", &Login, "Row", #StepLog))
    set(#TotalRecords,$subtract($table total rows(&NEW),1),"Global")
    set(#WorkToDo,$plugin function("TableCommands.dll", "$table search", &NEW, "false", "Row Index"),"Global")
    if(#WorkToDo < 0) {
        then {
            stop script
        }
        else {
        }
    }
    if($file exists("C:\\StatsResults.zip")) {
        then {
            delete file("C:\\StatsResults.zip")
        }
        else {
        }
    }
    set(#DBbackup,"C:\\{$random text(8)}.gzip","Global")
    set(#LoginCount,0,"Global")
    set(#MainLoop,0,"Global")
    create table from file("C:\\Empty.csv",&EmptyFile)
    set(#a,0,"Global")
    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)
    }
    define MyLogin(#id, #pass, #City, #CityURL, #Expected, #LoginIndex) {
        thread {
            set(#CSVfilename,$add($add("C:\\temp\\temp",#City),".csv"),"Local")
            set(#ResultFile,$add($add("C:\\temp\\Result",#City),".jpg"),"Local")
            in new browser {
                navigate(#CityURL,"Wait")
                wait for element(<login link>,"","Appear")
                wait for element($element offset(<name="remember_me">,1),"","Appear")
                change checkbox($element offset(<name="remember_me">,1),"Unchecked")
                type text($element offset(<email field>,1),#id,"Standard")
                wait(2)
                type text($element offset(<password field>,1),#pass,"Standard")
                wait(2)
                click($element offset(<login button>,1),"Left Click","No")
                wait for element(<class="analysis-body">,"","Appear")
                navigate(#CityURL,"Wait")
                wait(5)
                set(#FileSave,0,"Local")
                set(#MoreTime,0,"Local")
                loop while(#FileSave = 0) {
                    set(#ErrorSeen,$scrape attribute($element offset(<tagname="h1">,0),"innertext"),"Local")
                    if(#ErrorSeen = "Log in") {
                        then {
                            set(#FileSave,1,"Local")
                        }
                        else {
                        }
                    }
                    set(#ErrorSeen,$url,"Local")
                    if(#ErrorSeen = "https://mysite.com/about") {
                        then {
                            set(#FileSave,1,"Local")
                        }
                        else {
                        }
                    }
                    if(#FileSave = 0) {
                        then {
                            wait for element(<class="Icon Icon--featherDownload">,"","Appear")
                            click(<class="Icon Icon--caretDown controls-caret">,"Left Click","No")
                            click(<innertext="Last 7 Days">,"Left Click","No")
                            wait(5)
                            click(<class="btn btn-default ladda-button">,"Left Click","No")
                            wait(2)
                            save downloaded file(#CSVfilename)
                            set(#MoreTime,0,"Local")
                            loop while(#MoreTime = 0) {
                                set(#ButtonState,$scrape attribute(<id="export">,"outerhtml"),"Local")
                                if($find index(#ButtonState,"data-style=\"expand-right\" disabled=\"\" data-loading=\"\">") < 0) {
                                    wait(7)
                                    then {
                                        comment("Button State changed back and file is supposedly Saved")
                                        if($file exists(#CSVfilename)) {
                                            then {
                                                set(#FileSize,$plugin function("Advanced Shell.dll", "$shell batch hidden", "for %I in ({#CSVfilename}) do @echo.%~zI"),"Local")
                                                if(#FileSize = 0) {
                                                    then {
                                                        delete file(#CSVfilename)
                                                        set(#MoreTime,1,"Local")
                                                    }
                                                    else {
                                                        clear table(&CSVfilename)
                                                        create table from file(#CSVfilename,&CSVfilename)
                                                        set(#Actual,$table cell(&CSVfilename,1,1),"Local")
                                                        set(#IndexFound,$find index(#Actual,#Expected),"Local")
                                                        if($comparison(&CSVfilename,"= Equals",&EmptyFile)) {
                                                            then {
                                                                set table cell(&Login,#LoginIndex,5,"true")
                                                                set table cell(&Login,#LoginIndex,6,$now)
                                                                set(#FileSave,1,"Local")
                                                                set(#MoreTime,1,"Local")
                                                            }
                                                            else {
                                                                if($find index(#Actual,#Expected) = 0) {
                                                                    then {
                                                                        set table cell(&Login,#LoginIndex,5,"true")
                                                                        set table cell(&Login,#LoginIndex,6,$now)
                                                                        set(#FileSave,1,"Local")
                                                                        set(#MoreTime,1,"Local")
                                                                    }
                                                                    else {
                                                                        set table cell(&Login,#LoginIndex,5,"false")
                                                                        set table cell(&Login,#LoginIndex,6,$now)
                                                                        delete file(#CSVfilename)
                                                                        set(#MoreTime,1,"Local")
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                            else {
                                                set(#MoreTime,1,"Local")
                                            }
                                        }
                                    }
                                    else {
                                        comment("Data Loading")
                                        wait(4)
                                    }
                                }
                            }
                        }
                    }
                }
                wait($rand(1,10))
                save to file("C:\\SpecLog.txt",&Login)
            }
        }
    }
    comment("ADD DB Import here")
    

    The wait(7) before the 'comment("Button State changed back and file is supposedly Saved")' is what had to be added in order for the thread to see the file had been saved, that is not needed when it's not threaded. Without the pause, it always failed with file doesn't exist.

    I also added the random wait near the end when it writes the table back out to the log file, because I had an issue where two threads finished at the same time and both tried to write to the file at the same time. Is there some way to check if the file is writable before saving? So the script won't error out? Ubot really needs some 'OnError' handling, so I can determine how to recover from some errors without crashing the script.

     

    spec log.txt is a simple csv file like this:

    UserName , PassWord , SiteName , SiteURL , DownloadIdentifierCode , Completed(true or false) , TimeStamp of last completion

    ,,,,,, One empty row at the end to detect end of what I want to process, I can move this in the list if during testing I only want to test up to this point without deleting other entries from the list.
  4. 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)
        }
        wait(240)
    }
    define MyLogin(#id, #pass, #City, #CityURL, #Expected) {
        thread {
            set(#CSVfilename,$add($add("C:\\temp",#City),".csv"),"Local")
            set(#ResultFile,$add($add("C:\\Result",#City),".jpg"),"Local")
            in new browser {
                navigate(#CityURL,"Wait")
                wait for element(<login link>,"","Appear")
                wait for element($element offset(<name="remember_me">,1),"","Appear")
                change checkbox($element offset(<name="remember_me">,1),"Unchecked")
                type text($element offset(<email field>,1),#id,"Standard")
                wait(2)
                type text($element offset(<password field>,1),#pass,"Standard")
                wait(2)
                click($element offset(<login button>,1),"Left Click","No")
                wait for element(<class="analysis-body">,"","Appear")
                navigate(#CityURL,"Wait")
                wait(5)
                set(#FileSave,0,"Local")
                set(#TryCount,0,"Local")
                set(#MoreTime,0,"Local")
                loop while(#FileSave = 0) {
                    set(#ErrorSeen,$scrape attribute($element offset(<tagname="h1">,0),"innertext"),"Local")
                    if(#ErrorSeen = "Log in") {
                        then {
                            set(#FileSave,1,"Local")
                        }
                        else {
                        }
                    }
                    set(#ErrorSeen,$url,"Local")
                    if(#ErrorSeen = "https://mysite.com/about") {
                        then {
                            set(#FileSave,1,"Local")
                        }
                        else {
                        }
                    }
                    if(#FileSave = 0) {
                        then {
                            wait for element(<class="Icon Icon--featherDownload">,"","Appear")
                            click(<class="Icon Icon--caretDown controls-caret">,"Left Click","No")
                            click(<innertext="Last 7 Days">,"Left Click","No")
                            wait(5)
                            click(<class="btn btn-default ladda-button">,"Left Click","No")
                            wait(2)
                            save downloaded file(#CSVfilename)
                            set(#MoreTime,0,"Local")
                            loop while(#MoreTime = 0) {
                                set(#ButtonState,$scrape attribute(<id="export">,"outerhtml"),"Local")
                                if($find index(#ButtonState,"data-style=\"expand-right\" disabled=\"\" data-loading=\"\">") < 0) {
                                    then {
                                        comment("Button State changed back and file is supposedly Saved")
                                        if($file exists(#CSVfilename)) {
                                            then {
                                                alert("File exists keep verifing")
                                                set(#FileSize,$plugin function("Advanced Shell.dll", "$shell batch hidden", "for %I in ({#CSVfilename}) do @echo.%~zI"),"Local")
                                                alert(#FileSize)
                                                if(#FileSize = 0) {
                                                    then {
                                                        delete file(#CSVfilename)
                                                        set(#MoreTime,1,"Local")
                                                        alert("Delete File, set MoreTime 1")
                                                    }
                                                    else {
                                                        clear table(&CSVfilename)
                                                        create table from file(#CSVfilename,&CSVfilename)
                                                        set(#Actual,$table cell(&CSVfilename,1,1),"Local")
                                                        set(#IndexFound,$find index(#Actual,#Expected),"Local")
                                                        comment("compare to empty here")
                                                        if($comparison(&CSVfilename,"= Equals",&EmptyFile)) {
                                                            then {
                                                                comment("File was saved and contains nothing but headers, no data")
                                                                set table cell(&Login,$plugin function("TableCommands.dll", "$table search", &Login, #CityURL, "Row Index"),5,"true")
                                                                set table cell(&Login,$plugin function("TableCommands.dll", "$table search", &Login, #CityURL, "Row Index"),6,$now)
                                                                set(#FileSave,1,"Local")
                                                                set(#MoreTime,1,"Local")
                                                            }
                                                            else {
                                                                Comment("File saved contians data continue chekcing")
                                                                if($find index(#Actual,#Expected) = 0) {
                                                                    then {
                                                                        comment("File contains data expected, exit filesave loop, exit moretime loop")
                                                                        set table cell(&Login,$plugin function("TableCommands.dll", "$table search", &Login, #CityURL, "Row Index"),5,"true")
                                                                        set table cell(&Login,$plugin function("TableCommands.dll", "$table search", &Login, #CityURL, "Row Index"),6,$now)
                                                                        set(#FileSave,1,"Local")
                                                                        set(#MoreTime,1,"Local")
                                                                    }
                                                                    else {
                                                                        comment("File contains bad data, delete, end loop, try again")
                                                                        set table cell(&Login,$plugin function("TableCommands.dll", "$table search", &Login, #CityURL, "Row Index"),5,"false")
                                                                        set table cell(&Login,$plugin function("TableCommands.dll", "$table search", &Login, #CityURL, "Row Index"),6,$now)
                                                                        delete file(#CSVfilename)
                                                                        set(#MoreTime,1,"Local")
                                                                        alert("File contains bad data,FS0 MT1, delete file")
                                                                    }
                                                                }
                                                            }
                                                            save to file("C:\\SpecLog.txt",&Login)
                                                            alert("Save Login table")
                                                        }
                                                    }
                                                }
                                            }
                                            else {
                                                set(#MoreTime,1,"Local")
                                                alert("File Doesn't exist, MT1")
                                            }
                                        }
                                    }
                                    else {
                                        comment("Data Still Loading")
                                        wait(4)
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    

    I added all the alerts to see where the thread was failing since you can't see what's going on inside of a thread as far as I know.

    It's very basic script, login to site, select time frame, wait for download button to have be in the ready state, click download button, check status of button (when the file is being compiled on the server side the button state changes, so I use that to know when to look for the local file), I pause 4 sec between each check just to not eat up too many resources checking constantly. If the button changes back to ready that signals the file has been sent to the local browser, I detect that and look for the file from the Save Downloaded File command. Threaded like above it always fails to find the file it supposedly saved and tries to download it again, which then fails because the file then already exists. I have left an file explorer window open to see when the file actually gets written out and when not threaded it happens instantly. When threaded, I have to add a 10 or more wait to ensure the file has been saved. 

     

    Am I missing something here or is this a bug that needs to be reported?

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

  6. 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:36
    three,true,05/24/2018 13:31:54
    four,false,05/24/2018 11:47:58
    clear table(&myTable)
    create table from file("{$special folder("Application")}\\myTable.csv",&myTable)
    clear list(%random cells)
    set(#TotalRows,$subtract($table total rows(&myTable),1),"Global")
    set(#WorkToDo,$plugin function("TableCommands.dll", "$table search", &myTable, "false", "Row Index"),"Global")
    if(#WorkToDo < 0) {
        then {
            stop script
        }
    }
    set(#LoopCount,0,"Global")
    set(#ExitLoop,0,"Global")
    loop while(#ExitLoop = 0) {
        set(#myTable Index,$rand(0,#TotalRows),"Global")
        set(#datediff,$n ago($n seconds(12,"Hours")),"Global")
        if($either($comparison($table cell(&myTable,#myTable Index,2),"= Equals",$nothing),$comparison($table cell(&myTable,#myTable Index,2),"<",#datediff))) {
            then {
                add item to list(%random cells,#myTable Index,"Don\'t Delete","Global")
                set table cell(&myTable,$random list item(%random cells),2,$now)
                set table cell(&myTable,$random list item(%random cells),1,"true")
                set(#ExitLoop,1,"Global")
            }
        }
        increment(#LoopCount)
        if(#LoopCount > #TotalRows) {
            then {
                set(#LoopCount,0,"Global")
            }
        }
    }
    save to file("{$special folder("Application")}\\myTable.csv",&myTable)
    
    
  7. 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?

  8. 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 most of the actual code removed and there are many more embedded loops  and if/thens to handle more possible errors, this just illustrated what I'm trying to accomplish.

    Could the below be greatly simplified by making each "loop" its own subroutine/function? if so how is that done in Ubot?

     

    Structure is like this:

     

    set(#MainLoop,0,"Global")

    Loop while(#MainLoop = 0) {

         ---login to site code here---

         set(#PageLoad,0,"Global")

         Loop while(#PageLoad = 0) {

               If error found

                    then

                          ---clean up routine here---

                          set(#PageLoad,1,"Global")

               if error2 found

                    then

                          ---clean up routine here---

                          set(#PageLoad,1,"Global")

         }

         set(#PageLoad,0,"Global") ---make sure the variable is reset before next loop---

        ---If we made it this far the page loaded correctly---

         ---wait for element on page ---

         ---Click save file button on page---

         save downloaded file(#filename)

         set(#FileSave,0,"Global")

         loop while(#FileSave,0,"Global"){

                set(#ButtonState,$scrape attribute(<id="export">,"outerhtml"),"Global")
                if($find index(#ButtonState,"data-style=\" data-loading=\"\">") < 0) {
                    then {
                        ---text not found so ButtonState changed and file is ready to save---
                        if($file exists(#filename)) { ---checks to make sure the file from the above save actually got saved---
                            then {
                                comment("ADD DATA VERIFY CHECK HERE")
                                set(#FileSave,1,"Global")
                            }
                            else { ---Button state changed but file never got saved, what happened?---
                                set(#ErrorSeen,$scrape attribute(<class="error"),"Global")
                                if(#ErrorSeen = "There was a problem exporting your data") {
                                    then { ---Reset Browser and load login page from table again---
                                        reset browser
                                        wait(5)
                                        ---NEEDS TO STOP LOOKING FURTHER HERE---
                                        ---Exit FileSave loop so it can process main loop again--
                                    }
                                    else {
                                    }
                                }
                                set(#ErrorSeen,$scrape attribute($element offset(<tagname="h1">,0),"innertext"),"Global")
                                if(#ErrorSeen = "Log in") { 
                                    then {---Login page re-appeared so session timed out---
                                        ---NEEDS TO STOP LOOKING FURTHER HERE---
                                        ---Exit FileSave loop so it can process main loop again--
                                    }
                                    else {
                                    }
                                }
                                set(#ErrorSeen,$url,"Global")
                                if(#ErrorSeen = "https://www.site.com/error"){
                                    then {---We ended up on custom error page try again---
                                        reset browser
                                        wait(5)
                                        ---NEEDS TO STOP LOOKING FURTHER HERE---
                                        ---Exit FileSave loop so it can process main loop again--
                                    }
                                    else {
                                    }
                                }
                            }
                        }
                    }
                    else {---the button state is still greyed out which means data is loading still---
                        wait(7)---Wait 7 sec, loop back to beginning of FileSave loop---
                    }
                }

          }

    ---We got here file must have saved correctly and passed verification---

    increment(#LoginCount) ---Move to next record in table---

    if($table cell(&Login,#LoginCount,0) = "") { ---Check to see if we've reached the end of the table---
         then {---we've process all records in table, clean up and move on to rest of the script---
               reset browser
               wait(5)
               set(#MainLoop,1,"Global")
         }
         else {---set variables for next cycle of MainLoop---
               set(#filename,"C:\\temp{$table cell(&Login,#LoginCount,2)}.csv","Global")
               set(#FileSave,0,"Global")
          }
    }

    }

    ---rest of script---

  9. 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 application).

    Then once I find one that meets the criteria, I can store the current timestamp to the table so next loop it can't pick that one again.

    The rest is fairly simple, if none of the entries meets the above criteria, then they must all be used up. Here i can simply reset all the times to null or loop until one becomes available.

  10. 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 table cell #pos,0 to a variable and update table cell #pos,1 with $now (current timestamp since we are about to use it)

    Else find a new random list entry and try again

     

    If it makes it through the entire table and can't find any that are available, clear column 1 and start again

     

     

  11. 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.%~zI"),"Global")
  12. 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.

     

     

    post-11323-0-99104500-1492201123_thumb.png

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

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

  15.  

    In a lot of previous update emails i said that the commands under discontinued will be deleted in a future update and you should use the most current updatable commands and functions , bonus package is full of source codes that uses $http post and $http get , make sure to check them out :)

    Anyways here is a sample code related to what you posted (make sure to replace it)

    set(#ret, $plugin function("HTTP post.dll", "$http post", #serverlink, #postData, #UserAgent, #referrer, "", ""), "Global")
    

    Thank you,

    where do I get " bonus package is full of source codes that uses $http post and $http get"

×
×
  • Create New...