Chris M 55 Posted May 20, 2014 Report Share Posted May 20, 2014 Hey guys, I'm just toying around in the uBotsandbox.com and was testing scraping a table andadding the list to a UI List Box and I'm seeing a weird problem. In uBot it kind of works. I have to switch between node view and code view before the UIgets populated but it eventually does. However if I create an executable from this code the UI List Box never gets filled in atall. Can someone explain why? navigate("http://www.ubotsandbox.com/ip-address-example.php", "Wait") wait for browser event("Everything Loaded", "") scrape table(<id="iptable">, &scrapedips) add list to list(%fixedips, $plugin function("TableCommands.dll", "$list from table", &scrapedips, "Column", 0), "Delete", "Global") wait(2) ui list box("Ips", $replace(%fixedips, $new line, ","), #cleaned) Quote Link to post Share on other sites
a2mateit 395 Posted May 20, 2014 Report Share Posted May 20, 2014 The ui's do not dynamically update. Which is why it changes when you switch from code view to node view. If you had tabs in your ui, it would update after switching tabs as well... AFAIK there is no workaround for this presently. 1 Quote Link to post Share on other sites
Chris M 55 Posted May 20, 2014 Author Report Share Posted May 20, 2014 Gotcha. Thanks. Quote Link to post Share on other sites
a2mateit 395 Posted May 20, 2014 Report Share Posted May 20, 2014 np Quote Link to post Share on other sites
the_way 52 Posted May 20, 2014 Report Share Posted May 20, 2014 Perfect, cheers mate, i never thought of switching to another tab to get round this Quote Link to post Share on other sites
a2mateit 395 Posted May 21, 2014 Report Share Posted May 21, 2014 Yeah, it's not the greatest work-around. But it does work. Maybe one day one of the awesome plugin creators will be able to solve it. Quote Link to post Share on other sites
Bot-Factory 602 Posted May 21, 2014 Report Share Posted May 21, 2014 Another way would be to use a HTML ui. Or you could use a button to start a list box dialog from the Advanced Dialog Plugin:http://www.ubotstudio.com/forum/index.php?/topic/16146-sell-plugin-advanced-dialog/ Dan Quote Link to post Share on other sites
HelloInsomnia 1103 Posted May 21, 2014 Report Share Posted May 21, 2014 Try this ui html panel("<select list=\"#ips\" list-fillwith=\"options\" size=\"5\"></select>", 200) set(#ips, $nothing, "Global") navigate("http://www.ubotsandbox.com/ip-address-example.php", "Wait") wait for browser event("Everything Loaded", "") scrape table(<id="iptable">, &scrapedips) add list to list(%fixedips, $plugin function("TableCommands.dll", "$list from table", &scrapedips, "Column", 0), "Delete", "Global") wait(2) set(#ips, $replace(%fixedips, $new line, ","), "Global") 1 Quote Link to post Share on other sites
Chris M 55 Posted May 23, 2014 Author Report Share Posted May 23, 2014 Thanks guys I forgot about this and just realized the team is still helping out haha...I love it! Thank you HelloInsomnia as well. Your code does work as is 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.