webpro 31 Posted December 16, 2012 Report Share Posted December 16, 2012 I'm trying to figure out how the ui stat monitor is working Basically, the page is showing a number which is upated each time you do something (you earn credits)Ex:Credits today: 132 ui stat monitor("Credits Today", $exists(<outerhtml=w"<div> <b>Credits today:</b> * </div>">)) This is showing as:Credits today: true So it's not showing up the points, even tho i do see on the page that it's getting accumulated after doing actions. How can i do this ?Is there some tutorial somewhere for UI stat monitor ?Once i understand it, i'll play around the UI html with it Thanks Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 16, 2012 Report Share Posted December 16, 2012 scrape it to a variable, and use the variable in the ui monitor so that it monitors the scraped value. Quote Link to post Share on other sites
webpro 31 Posted December 17, 2012 Author Report Share Posted December 17, 2012 Ahhh thanks mate got it. ui stat monitor("Credits Today", #credits)loop(#loopnumber) { set(#credits, $scrape attribute(<outerhtml=w"<div> <b>Credits today:</b> * </div>">, "innertext"), "Global") Now guys, just use the SELECTOR to grab the INNERTEXT on the page you want to showFor instance, i wanted to show "Credits today" Created a UI STAT monitorNamed it: "Credits today"Content to track: #credits Then created a variable like this: Set commandVariable name #creditsNew Value$scrape attributeElement to scrapeUsed the selector and selected what i wanted on the page (you know when it highlights something ?)Attribute to scrapeINNERTEXT Hope it helps Quote Link to post Share on other sites
webpro 31 Posted December 21, 2012 Author Report Share Posted December 21, 2012 Ok one last thing is missing.To use this withUI HTML PANEL !!! Hummm MOM lol ? Seriously, if someone has the html code so i can show the UI stats, that would be cool !I got a gig tonight so i won't be able to play around with UB.Pop/dance/rock/country/name it i can play it !As long as it pays... EDITED:I just found thishttp://www.ubotstudio.com/forum/index.php?/topic/12125-live-updating-of-ui-stat-monitor-in-ui-html-panel/ So we can't do this for now ? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 21, 2012 Report Share Posted December 21, 2012 <div variable="#link" fillwith="innertext>"></div> Quote Link to post Share on other sites
SaHiN 14 Posted January 12, 2013 Report Share Posted January 12, 2013 <div variable="#link" fillwith="innertext>"></div> how to make html panel- ui stat monitor add image? set(#loading, "<img src=\"http://.../images/loading.gif\">", "Global") Quote Link to post Share on other sites
AutomationNinja 194 Posted January 12, 2013 Report Share Posted January 12, 2013 that would be cool... doesn't that code you posted work? Quote Link to post Share on other sites
SaHiN 14 Posted January 13, 2013 Report Share Posted January 13, 2013 that would be cool... doesn't that code you posted work? ui stats monitor - image ok, working.html panel in ui stat monitor code - image no, don't working. 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.