botoballs 2 Posted December 22, 2014 Report Share Posted December 22, 2014 Hi Is it better to run each of your automation in seperate tabs to be much more organize and find errors etc?Reason I ask is because when I add all projects into one they seem to not work and finding errors is difficult.What would you professionals do if you guys get large projects and be organize?Would you guys hide the tabs when compiling or remove them to secure your source code? Quote Link to post Share on other sites
Pete 121 Posted December 22, 2014 Report Share Posted December 22, 2014 No idea what the professionals do but more tabs = more open browsers in your task manager which = more memory used I thinkMyself I try to make reusable modules when ever I can, these only come together just before the bots compiledThe include command should bring these into the bot when needed (however this command is not working correctly for me, as my bots show an error in the code when I save, then reopen them)The downside is conflicting list/variable names, an excel spread sheet can help here, but you spend as much time updating that as the bot Quote Link to post Share on other sites
botoballs 2 Posted December 22, 2014 Author Report Share Posted December 22, 2014 Could we seperate codes by containers and naming them? I know that you can put seperators but still... hmmm.. Quote Link to post Share on other sites
Pete 121 Posted December 22, 2014 Report Share Posted December 22, 2014 Yes make the modules in the defines Quote Link to post Share on other sites
zenos 13 Posted December 22, 2014 Report Share Posted December 22, 2014 (edited) The best way for me is all on the same tab, and use define as much as you can define navigatetotwitter { navigate("http://twitter.com", "Wait") wait for browser event("Everything Loaded", "")}define connecttotwitter { type text($element offset(<email field>, 1), "user", "Standard") type text($element offset(<password field>, 1), "pass", "Standard") click($element offset(<login button>, 1), "Left Click", "No") wait(0.2) wait for browser event("Everything Loaded", "") wait(10)}define run { navigatetotwitter() connecttotwitter()} Edited December 22, 2014 by zenos Quote Link to post Share on other sites
botoballs 2 Posted December 22, 2014 Author Report Share Posted December 22, 2014 Hi Zenos, I tried your code. It does not do anything. How do you work this thing? You can't run define's right? What is define used for? Quote Link to post Share on other sites
zenos 13 Posted December 23, 2014 Report Share Posted December 23, 2014 Hi Zenos, I tried your code. It does not do anything. How do you work this thing? You can't run define's right? What is define used for? You have to make a button in a ui html panel to run the "run" define... Like this define navigatetotwitter { navigate("http://twitter.com", "Wait") wait for browser event("Everything Loaded", "")}define connecttotwitter { type text($element offset(<email field>, 1), "user", "Standard") type text($element offset(<password field>, 1), "pass", "Standard") click($element offset(<login button>, 1), "Left Click", "No") wait(0.2) wait for browser event("Everything Loaded", "") wait(10)}define run { navigatetotwitter() connecttotwitter()}ui html panel("<input type=\"button\" value=\"run\" class=\"btn btn-success btn-small\" onclick=\"ubot.runScript(\'run()\')\"> </body></html>", 540) Quote Link to post Share on other sites
darryl561 177 Posted December 23, 2014 Report Share Posted December 23, 2014 Could we seperate codes by containers and naming them? I know that you can put seperators but still... hmmm.. Hi Zenos, I tried your code. It does not do anything. How do you work this thing? You can't run define's right? What is define used for? Think of "Defines" as your containers that you name, that's what they are. Then set a button as zenos explained to run the define, which will run any and only those commands that you have placed inside that define(container). Edit:Another example: ui html panel("<button onclick=\"ubot.runScript(\'navigate to google()\')\">google</button> <button onclick=\"ubot.runScript(\'search()\')\">search</button> ", 100) define navigate to google { navigate("http://www.google.com", "Wait") alert("ready to search") } define search { type text(<name="q">, "ubot", "Standard") click(<name="btnG">, "Left Click", "No") } 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.