Jump to content
UBot Underground

What's Wrong With My Bot?


Recommended Posts

Hey guys,

 

I'm just toying around in the uBotsandbox.com and was testing scraping a table and

adding 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 UI

gets populated but it eventually does.

 

However if I create an executable from this code the UI List Box never gets filled in at

all.

 

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)

Link to post
Share on other sites

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.

  • Like 1
Link to post
Share on other sites

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. 

Link to post
Share on other sites

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")
  • Like 1
Link to post
Share on other sites

Thanks guys :D

 

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 :)

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...