Jump to content
UBot Underground

SaHiN

Fellow UBotter
  • Content Count

    244
  • Joined

  • Last visited

Posts posted by SaHiN

  1.  

    try

    clear list(%Variable)
    clear list(%List)
    clear list(%Table)
    set(#UbotCode,"set(#UbotCode,\"\",\"Global\")
    set(#Debug,$table cell(&test,0,0),\"Global\")
    set(#Debug2,$list item(%MyList,0),\"Global\")
    ","Global")
    add list to list(%Variable,$find regular expression(#UbotCode,"#[\\w\\d\\s]+"),"Delete","Global")
    add list to list(%List,$find regular expression(#UbotCode,"%[\\w\\d\\s]+"),"Delete","Global")
    add list to list(%Table,$find regular expression(#UbotCode,"&[\\w\\d\\s]+"),"Delete","Global")

     

    thank you Pash

  2. Want you to use Google first and search for the answer before coming here for a quick fix like the date thing.

     

    What are you trying to do anyway?

    KfeEjNfwRRGPZJkyMDJquA.png

     

     

    Run Java script

     

     

      var images = $$('img');
        for (each in images) {
            console.log(images[each].src);
        }
    

    and , return result ubot value.

  3.  

    1.  Dont give an error message about something thats not to do with exbrowser, as you clearly see thats when you attempted to use $eval 

     

    2.  Use the correct javascript statement to creating the date

    var d = new Date();

     

    3.  $ExBrowser Run Javascript executes javascript to the browser so its not going to set to a variable, it will echo in the browser

    Sat Feb 03 2018 16:24:54 GMT-0500 (Eastern Standard Time)

    set(#returnedValue,$plugin function("ExBrowser.dll", "$ExBrowser Run Javascript", "var d = new Date();

    document.write(d);"),"Global")

    4. if you want it to a variable use it inside $eval

    set(#returnedValue,$eval("var d = new Date(); d;"),"Global")
     
     

     

     

     

    hi Tj,

     

    my code;

      var images = $$('img');
        for (each in images) {
            console.log(images[each].src);
        }
    
    

    how to make return value ?

  4.  

    Okay I see now this will account for either or both leading and trailing new lines like that:

    add list to list(%replaceNewLines,$list from text($replace regular expression($replace regular expression($replace regular expression(#scrape,"\\n","_EMPTY_,"),"(?<=\\d+)_EMPTY_",$nothing),",$",",_EMPTY_"),","),"Don\'t Delete","Global")

    very good thank you :)

  5. Try this:

    set(#scrape,"1
    
    3
    4
    5
    
    6
    
    8
    
    9
    ","Global")
    clear list(%replaceNewLines)
    add list to list(%replaceNewLines,$list from text($replace regular expression($replace regular expression(#scrape,"\\n",",_EMPTY_"),"_EMPTY_(?=\\d+)",$nothing),","),"Don\'t Delete","Global")
    

    Now your empty lines will say _EMPTY_ and you can choose to do whatever you need with those by looking for that tag.

     

     

     

    new problem dear,

     

    13 lines = code 12 lines

     

    set(#scrape,"

    1

     

    3

    4

    5

     

    6

     

    8

     

    9

    ","Global")

     

  6. Try this:

    set(#scrape,"1
    
    3
    4
    5
    
    6
    
    8
    
    9
    ","Global")
    clear list(%replaceNewLines)
    add list to list(%replaceNewLines,$list from text($replace regular expression($replace regular expression(#scrape,"\\n",",_EMPTY_"),"_EMPTY_(?=\\d+)",$nothing),","),"Don\'t Delete","Global")
    

    Now your empty lines will say _EMPTY_ and you can choose to do whatever you need with those by looking for that tag.

     

     

    Very Good, nice Working  :)

  7. Hi,

    set(#scrape,"1
    
    3
    4
    5
    
    6
    
    8
    
    9
    ","Global")
    alert($replace regular expression(#scrape,"\\s+",$new line))
    add list to list(%data,$list from text($replace regular expression(#scrape,"\\s+",$new line),$new line),"Delete","Global")
    alert(%data)
    
    

    Regards,

    Nick

     

    don't working nick :(

  8. hi,

     

    set(#scrape,"1

    3
    4
    5

    6

    8

    9
    ","Global")
    add list to list(%list,$list from text(#scrape,$new line),"Don\'t Delete","Global")

     

     

    my problem auto delete blank lines.

     

    necessary - blank lines

     

    #scrape 12 line

    %list 7 line

     

    auto delete blank lines

     

    how to make add blank lines?

     

×
×
  • Create New...