1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Could anyone give a simple ubot code?

Discussion in 'General Programming Chat' started by hawkweb, Mar 31, 2012.

  1. hawkweb

    hawkweb Regular Member

    Joined:
    Aug 18, 2009
    Messages:
    375
    Likes Received:
    21
    Hi
    I am using ubot for the first time. Been figuring out how to add a text box and add my private proxies into it and us it to access the browser.
    I would like to add my proxies like this proxy:port:username:password into a text box. Its easy to add the text box but I do not know how to use the field to use with proxies.
    Anyone care to provide tips or samples would be appreciated.

    Thanks
     
  2. hawkweb

    hawkweb Regular Member

    Joined:
    Aug 18, 2009
    Messages:
    375
    Likes Received:
    21
    my third thread about ffap and no response.
     
  3. meatro

    meatro BANNED BANNED

    Joined:
    Nov 21, 2009
    Messages:
    568
    Likes Received:
    997
    Code:
    ui block text("Private Proxies:", #PrivateProxies)
    add list to list(%PrivateProxies, $list from text(#PrivateProxies, $new line), "Delete", "Global")
    loop($list total(%PrivateProxies)) {
        if($comparison($list position(%PrivateProxies), ">=", $list total(%PrivateProxies))) {
            then {
                set list position(%PrivateProxies, 0)
            }
        }
        clear list(%PrivateProxy)
        add list to list(%PrivateProxy, $list from text($next list item(%PrivateProxies), ":"), "Delete", "Global")
        change proxy("{$next list item(%PrivateProxy)}:{$next list item(%PrivateProxy)}")
        set proxy credentials($next list item(%PrivateProxy), $next list item(%PrivateProxy))
        navigate("www.whatismyip.com", "Wait")
        wait(5)
    }
    clear list(%PrivateProxies)
     
    • Thanks Thanks x 1