mamica 10 Posted October 10, 2013 Report Share Posted October 10, 2013 set(#random, $rand(25, 35), "Global") Gives me number 8, isnt it supposed to give me random number between 25 and 35 ? Quote Link to post Share on other sites
carlstarus 2 Posted October 10, 2013 Report Share Posted October 10, 2013 (edited) I have another weird one... ui stat monitor("Number of sites to check: {$list total(%SitesList)}", "")ui stat monitor("Current site: ", $replace(#SiteCommandURL, "site:", $nothing))set(#SitesToCheck, "{$nothing}{$replace($get files("{$special folder("Desktop")}\\INDEXING", "No"), ".xlsx", $nothing)}", "Global")add list to list(%SitesList, $list from text(#SitesToCheck, ""), "Delete", "Global")set(#SitesToCheck, $nothing, "Global")navigate("http://google.com", "Wait")wait for element(<name="q">, "", "Appear")set(#SiteCommandURL, "site:{$list item(%SitesList, 0)}", "Global")loop($list total(%SitesList)) { set(#SiteCommandURL, "site:{$next list item(%SitesList)}", "Global") wait($rand(1, 3)) navigate("http://google.com", "Wait") type text(<name="q">, #SiteCommandURL, "Standard") click(<name="btnG">, "Left Click", "No")}comment("separator --")stop scriptset(#results, $scrape attribute(<id="resultStats">, "innertext"), "Global")set(#results, $replace($replace regular expression(#results, "About (.\{1,\}) results.\{1,\}", "$1"), ",", $nothing), "Global")alert(#results) works great in version 4 Dev. but in version 5 Dev. it adds the full filepath as a parameter... Edited October 10, 2013 by carlstarus Quote Link to post Share on other sites
the_way 52 Posted October 10, 2013 Report Share Posted October 10, 2013 i reported this to support already. I've switched back to ubot4, i'll start using 5 once everyone else irons out the bugs. Quote Link to post Share on other sites
MiriamMB 63 Posted October 10, 2013 Report Share Posted October 10, 2013 I have another weird one... ui stat monitor("Number of sites to check: {$list total(%SitesList)}", "")ui stat monitor("Current site: ", $replace(#SiteCommandURL, "site:", $nothing)) set(#SitesToCheck, "{$nothing}{$replace($get files("{$special folder("Desktop")}\\INDEXING", "No"), ".xlsx", $nothing)}", "Global")add list to list(%SitesList, $list from text(#SitesToCheck, ""), "Delete", "Global")set(#SitesToCheck, $nothing, "Global")navigate("http://google.com", "Wait")wait for element(, "", "Appear")set(#SiteCommandURL, "site:{$list item(%SitesList, 0)}", "Global")loop($list total(%SitesList)) { set(#SiteCommandURL, "site:{$next list item(%SitesList)}", "Global") wait($rand(1, 3)) navigate("http://google.com", "Wait") type text(, #SiteCommandURL, "Standard") click(, "Left Click", "No")}comment("separator --")stop scriptset(#results, $scrape attribute(, "innertext"), "Global")set(#results, $replace($replace regular expression(#results, "About (.\{1,\}) results.\{1,\}", "$1"), ",", $nothing), "Global")alert(#results) works great in version 4 Dev. but in version 5 Dev. it adds the full filepath as a parameter... Please open a ticket for the issues you find. Quote Link to post Share on other sites
MiriamMB 63 Posted October 12, 2013 Report Share Posted October 12, 2013 issue submitted here: http://tracker.ubotstudio.com/issues/7and here: http://tracker.ubotstudio.com/issues/6 Feel free to open a ticket with us at support.ubotstudio.com if you encounter any other issues. If you find a reproducible issue, feel free to to submit it to our tracker. 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.