Jump to content
UBot Underground

Is It Better To Run The Automation In Seperate Tabs?


Recommended Posts

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?

Link to post
Share on other sites

No idea what the professionals do but more tabs = more open browsers in your task manager which = more memory used I think

Myself I try to make reusable modules when ever I can, these only come together just before the bots compiled

The 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

Link to post
Share on other sites

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 by zenos
Link to post
Share on other sites

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)

Link to post
Share on other sites

Could we seperate codes by containers and naming them? I know that you can put seperators but still... hmmm..  :unsure:

 

 

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")
}
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...