Jump to content
UBot Underground

Recommended Posts

i have the following code:

 

 

ui list box("Listbox", "aol , yahoo, bing , lycos, infoseek, mama, dogpile", #listbox)
if($comparison(#listbox, "=", "aol")) {
    then {
        navigate("www.aol.com", "Wait")
    }
    else {
        navigate("www.yahoo.com", "Wait")
    }
}
ui stat monitor("The current site is:", $url)

 

 

I simply want to select an item from that listbox and then have ubot go to the select site.

 

I want to be able to have the choice to select any site and have ubot go to that site..

 

 

can someone please give me an idea on how this works...

 

thanks

 

 

 

Link to post
Share on other sites

ui list box("Listbox", "aol , yahoo, bing ", #listbox)
if($comparison(#listbox, "=", "aol")) {
    then {
        navigate("www.aol.com", "Wait")
    }
    else if($comparison(#listbox, "=", "yahoo")) {
        then {
            navigate("http://www.yahoo.com/", "Wait")
        }
        else if($comparison(#listbox, "=", "bing")) {
            then {
                navigate("http://www.bing.com/", "Wait")
            }
        }
    }
}
ui stat monitor("The current site is:", $url)

 

 

this is my code and it doesnt work.

 

can someone modify this and make it work :)

 

thank you

Link to post
Share on other sites

Here you go, this works :-

 

ui list box("Listbox", "aol,yahoo,bing", #listbox)
if(#listbox = "aol") {
    then {
        navigate("www.aol.com", "Wait")
    }
    else if(#listbox = "yahoo") {
        then {
            navigate("http://www.yahoo.com/", "Wait")
        }
    }
    else if(#listbox = "bing") {
        then {
            navigate("http://www.bing.com/", "Wait")
        }
    }
}
ui stat monitor("The current site is:", $url)

 

hope that helps :)

  • Like 1
Link to post
Share on other sites
Here you go, this works :-

 

ui list box("Listbox", "aol,yahoo,bing", #listbox)
if(#listbox = "aol") {
    then {
        navigate("www.aol.com", "Wait")
    }
    else if(#listbox = "yahoo") {
        then {
            navigate("http://www.yahoo.com/", "Wait")
        }
    }
    else if(#listbox = "bing") {
        then {
            navigate("http://www.bing.com/", "Wait")
        }
    }
}
ui stat monitor("The current site is:", $url)

 

hope that helps :)

 

Thank you so much! :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...