Jump to content
UBot Underground

Correlating A Value To Items In A Ui Drop Box


Recommended Posts

After scraping items into a list, I placed that list into a drop down
I made another list with urls that are relative to the items in the first list that is now in the drop box.
I am trying to have the user select an item from the drop box so it can then be used to select the correct url to navigate to.

 

How do I give these items in the drop box a connection to the urls?

(Like if drop box variable = the position of items list then navigate to the same position in urls list.)
 

Edited by artfulseo
Link to post
Share on other sites

Enable the Table Commands plugin that comes with Ubot and this should work:

ui drop down("Sites:","Site 1,Site 2,Site 3",#sitesDropDown)
CreateSitesTable()
set(#chosenSite,$plugin function("TableCommands.dll", "$table search", &sites, #sitesDropDown, "Row Index"),"Global")
navigate($table cell(&sites,#chosenSite,1),"Wait")
divider
define CreateSitesTable {
    clear table(&sites)
    set table cell(&sites,0,0,"Site 1")
    set table cell(&sites,0,1,"http://google.com")
    set table cell(&sites,1,0,"Site 2")
    set table cell(&sites,1,1,"http://yahoo.com")
    set table cell(&sites,2,0,"Site 3")
    set table cell(&sites,2,1,"http://bing.com")
}
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...