Jump to content
UBot Underground

Gogetta

Moderators
  • Content Count

    870
  • Joined

  • Last visited

  • Days Won

    73

Posts posted by Gogetta

  1. HelloInsomnia,

     

    I have a suggestion for the next update. I would like to be able to set some plugins that are always checked each time I open the ubot launcher. These plugins should remain checked even when I open and load a script.

     

    I think this would be a good feature to add since I am finding that I have to enable plugins I always use. Basically, there are some plugins I never want disabled even if I haven't used them in the script .

     

    Thanks

  2. Update: fixed an issue where plugins with numbers may not be selected.

     

    To download just restart the program! Win 8 users make sure you click on "show more" and "run anyway" after download.

     

    Thanks for the update! On the next update can you also include plugins with special characters in the filename.

  3. If you want to select a folder using the UI commands I would suggest using Aymen's File Management Plugin here. The function you will want to use is the $folder browser dialog.

     

    If you then want the script to select a random file from the selected folder you can use the $get files function and add the filenames to a list.

     

    Example: (requires the file management plugin)

    ui button("Select a Folder") {
        set(#c_folder, $plugin function("File Management.dll", "$folder browser dialog"), "Global")
        clear list(%files)
        add list to list(%files, $get files(#c_folder, "Yes"), "Delete", "Global")
        alert("Random File:
    
    {$random list item(%files)}")
    }
    
    
  4. If I understood the question correctly this should work.

    ui list box("Cat Select:", "Cat 1,Cat 2,Cat 3", #chosen_cat)
    set(#selected_cat_value, $find regular expression("<option value=\"8\">- Cat 1</option>
    <option value=\"9\">- Cat 2</option>
    <option value=\"10\">- Cat 3</option>", "(?<=<option value=\").*?(?=\">- {#chosen_cat})"), "Global")
    alert(#selected_cat_value)
    
    
    • Like 1
  5. Usually Gogetta is right but from my experience Element Offset is not safe,you see when two or more elements are the same then you use positions on the page or (Element offsets),thing is these positions can change from time to time so your script could have errors i prefer to identify the element correctly that is why i asked you to show us your Code!

     

    I don't feel that I am wrong now. The function is used when trying to identify elements that are identical (similar in every way). Based on the question posted by the OP these images are "identical".

     

    I agree that it's not safe and it's best to look at other options first. But when the elements are in fact identical then the element offset is the function to use.

     

    Try having a script click only the 2nd link.

     

    Link

    Link

    Link

     

    Now please, without using the element offset explain the correct way.

  6. I just updated to v7.4 today and the Dialogue Button Element is no longer working. It brings up the dialogue box to create the button but when I select the ADD BUTTON nothing is added.

     

    After clicking the dialog you are linking the button to make sure to click the page you want the button added to. Try doing that before clicking the "Add Button".

     

    Video: https://www.screenr.com/dmqN

    • Like 2
  7. While scraping this regex code should work about 90% of the time.

    set(#Category, $find regular expression($find regular expression($document text, "(?<=Category:</strong>).*?(?=/a>)"), "(?<=>).*?(?=<)"), "Global")
    alert(#Category)
    set(#Web, $find regular expression($document text, "(?<=Web:</strong> <a href=\").*?(?=\")"), "Global")
    alert(#Web)
    set(#Phone, $find regular expression($document text, "(?<=Phone:</strong> ).*?(?=<)"), "Global")
    alert(#Phone)
    set(#adresa, $trim($replace regular expression($replace regular expression($find regular expression($find regular expression($replace($document text, $new line, $nothing), "(?<=companyBullet\" style=\";background-position:0px 3px;padding-left:9px\"> <span><strong>).*?(?=</td> <td> <ul>)"), "(?<=</span> </div> <span>).*?(?=</span> </div> )"), "<[^>]*>", $nothing), "\\s\{2,\}", " ")), "Global")
    alert(#adresa)
    
×
×
  • Create New...