artfulseo 1 Posted May 17, 2017 Report Share Posted May 17, 2017 (edited) After scraping items into a list, I placed that list into a drop downI 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 May 17, 2017 by artfulseo Quote Link to post Share on other sites
HelloInsomnia 1103 Posted May 17, 2017 Report Share Posted May 17, 2017 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") } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.