pash 504 Posted December 8, 2012 Report Share Posted December 8, 2012 Thanks buddy! +1 Quote Link to post Share on other sites
illmill 87 Posted January 3, 2013 Report Share Posted January 3, 2013 Wow, awesome. I was just working on a tutorial for this same thing and then I finally checked to see if someone had already done it. With the new window commands this will come in handy for scheduling bots to run daily (I need a bunch to run several times every day) and I won't even have to manually click play. This is perfect! Quote Link to post Share on other sites
Jubu 1 Posted January 15, 2013 Report Share Posted January 15, 2013 When I switch to another tab and then back to the first tab it onloads again. Does anyone know of a way not to do that? I tried having an if then where it sets a variable after it loads the first time and I have an if the variable = 1 then do nothing. So it shouldn't run it but it does anyway Quote Link to post Share on other sites
P0s3id0n 90 Posted January 15, 2013 Report Share Posted January 15, 2013 When I switch to another tab and then back to the first tab it onloads again. Does anyone know of a way not to do that? I tried having an if then where it sets a variable after it loads the first time and I have an if the variable = 1 then do nothing. So it shouldn't run it but it does anyway There is no need to use the code on the OP anymore the new version has an onload command and you can choose to onload on bot launch or on tab. 1 Quote Link to post Share on other sites
blumi40 222 Posted January 15, 2013 Report Share Posted January 15, 2013 There is no need to use the code on the OP anymore the new version has an onload command and you can choose to onload on bot launch or on tab.only Dev-Version i thing or? Quote Link to post Share on other sites
a2mateit 395 Posted January 15, 2013 Report Share Posted January 15, 2013 only Dev-Version i thing or? Yea, only dev version. Quote Link to post Share on other sites
Randy Role 1 Posted March 21, 2013 Report Share Posted March 21, 2013 Yea, only dev version. Lovely.. what do I do now as a Pro license with a big number of bots which used the javascript hack? meh. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 21, 2013 Author Report Share Posted March 21, 2013 Lovely.. what do I do now as a Pro license with a big number of bots which used the javascript hack? meh. The onload workaround i posted here should work on Pro license. I still use this javascript workaround because the built in onload command is a bit buggy. Quote Link to post Share on other sites
dankass 52 Posted April 15, 2013 Report Share Posted April 15, 2013 This is awesome, and works GREAT, But I am very confused why actually... being in a ui stat monitor how come its not running repeatedly the whole time the bot is running? I must be confused about how the ui stat monitor works... Quote Link to post Share on other sites
dankass 52 Posted April 15, 2013 Report Share Posted April 15, 2013 When I switch to another tab and then back to the first tab it onloads again. Does anyone know of a way not to do that? I tried having an if then where it sets a variable after it loads the first time and I have an if the variable = 1 then do nothing. So it shouldn't run it but it does anyway I just needed to do the same thing... here's how I did it and it works fine for me. ui stat monitor("<script type=\"text/javascript\"> window.setTimeout(function() \{ ubot.runScript(\'definesub()\') \}, 500) </script>", "") define definesub { if($comparison(#autorunstop, "!=", 1)) { then { navigate("http://www.google.com/", "Wait") change attribute(<name="q">, "value", "Test") alert("Done!") set(#autorunstop, 1, "Global") } else { } } } Quote Link to post Share on other sites
giganut 109 Posted April 20, 2013 Report Share Posted April 20, 2013 Thanks this works great Quote Link to post Share on other sites
SmokE 1 Posted December 2, 2013 Report Share Posted December 2, 2013 Thanks this helped me out a lot spent a day trying to get on load to work correctly but this works like a charm! Quote Link to post Share on other sites
UBot Marketer 7 Posted May 22, 2014 Report Share Posted May 22, 2014 Is it better than the OnLoad command in Ubot ? I have a large defined and bot freeze with me until all the task finished , Is this ONE freeze Also ! Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted May 22, 2014 Author Report Share Posted May 22, 2014 Is it better than the OnLoad command in Ubot ? I have a large defined and bot freeze with me until all the task finished , Is this ONE freeze Also ! Ubot built in onload loads immediately after you open your bot. The reason it freeze. Its trying to execute everything at once.This one will wait until the bot is fully loaded then execute your script.IMO, this one is better. It causes me a lot of problems with my customers when i use the built in one. Quote Link to post Share on other sites
UBot Marketer 7 Posted May 22, 2014 Report Share Posted May 22, 2014 Thanks Kreatus for the trick and for explaining it . i tested it and want to say WoW much much better I want to know though , I'm NOT using any Ui and after using it your Trick i get about 300px Ui ! How to get rid of the UI ? Thanks Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted May 22, 2014 Author Report Share Posted May 22, 2014 Thanks Kreatus for the trick and for explaining it . i tested it and want to say WoW much much better I want to know though , I'm NOT using any Ui and after using it your Trick i get about 300px Ui ! How to get rid of the UI ? Thanks If you have a uihtml code you can put the same code before </html>. Quote Link to post Share on other sites
UBot Marketer 7 Posted May 22, 2014 Report Share Posted May 22, 2014 I'm NOT using any ui in the bot , I'm using ui html window for a setting only then the bot start by task scheduler and runs Onload , Is there any work around ! Thanks Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted May 22, 2014 Author Report Share Posted May 22, 2014 As a workaround. You can create a uihtml panel with the onload code and make the height 0 so there will be no visible panel. Sample: ui html panel("<script type=\"text/javascript\"> window.setTimeout(function() \{ ubot.runScript(\'autoload()\') \}, 1000) </script>", 0) Quote Link to post Share on other sites
UBot Marketer 7 Posted May 22, 2014 Report Share Posted May 22, 2014 Thank you very much , it is fine now and thanks again for the code Quote Link to post Share on other sites
deliter 203 Posted April 1, 2015 Report Share Posted April 1, 2015 mind is blown snippet for calling ubot functions in javscript thank you so much how does that work?what is the ui stat monitor(as in more than what I thought it was) totally shocked 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.