Jump to content
UBot Underground

Praney Behl

Fellow UBotter
  • Content Count

    2328
  • Joined

  • Last visited

  • Days Won

    94

Posts posted by Praney Behl

  1. Maybe this is what you are after, I did a quick example. Instead of scraping an element here in this code I have added a UI text box to provide the text you are looking for in the list. I have include some comments to make it easier to understand what I am doing in the code.

     

    You can easily change it according to your needs.

     

    Here we go...

     

    comment("This is for illustration purpose only! 
    This code contains sample illustration in response to the problem in the post:
    http://ubotstudio.com/forum/index.php?/topic/10176-need-help-simple-if-then-statement-involving-list/page__view__findpost__p__52445
    
    #current list - UI Block Text - Contains the existing known list to search the scraped data from.
    This is further added to the list %current_list
    #pos - Variable to act as a list position pointer to loop through the list while finding the scrape element\'s existence in the current list.
    
    Example by:  
    Praney Behl")
    ui block text("Current List", #current_list)
    ui text box("Sample scraped item", #sample_scraped)
    clear list(%current_list)
    add list to list(%current_list, $list from text(#current_list, $new line), "Delete", "Global")
    set(#pos, 0, "Global")
    loop($list total(%current_list)) {
       if($contains($list item(%current_list, #pos), #sample_scraped)) {
           then {
               alert("Scraped Element exists at list position {#pos}")
           }
           else {
           }
       }
       increment(#pos)
    }
    
    

     

    Hope it helps :)

     

    Cheers! ;)

    Praney

    • Like 4
  2. Thats right TJ, 700 urls are not much at all. I have bots that process 2K+ links on my PC but crash on other PCs after 30-50 links. Because I clean up memory using third party app on my system and it has good resources. But with systems that have less resources it doesn't last long and crashes before the third party app could clear the memory.

     

    Its a mystery. I had Eddie look into it, not heard back yet. My case was memory leak.

  3. Hey Frank,

     

    I totally agree that this issue should be solved internally. And from what I have been told, the Awesomium update should fix this problem.

     

    It would be nice if this issue could be solved, but for now this is a very nice work around.

     

    Justin

     

    Justin,

    Mate, dont think it Awesomium, as Seth mentioned that Eddie has found it and it's to do with .NET Framework.

     

    They are finding a work around.

×
×
  • Create New...