Jump to content
UBot Underground

Help with my define comand


Recommended Posts

Hello. I'm trying to get my bot to log into twitter and if it reaches an error to re-start the loop. I'm really trying to get the define function down but I'm having difficulty. Can someone please look at this code and let me know where I'm messing up? A clear and proxy switch was also part of this code but I took it out. Thank you for all the help.

 

 

<define My Command {

    loop($table total rows(&accounts)) {
        navigate("https://twitter.com/""Wait")
        wait for browser event("Everything Loaded""")
        type text(<for="signin-email">$table cell(&accounts#row, 0), "Standard")
        wait(2)
        type text(<for="signin-password">$table cell(&accounts#row, 1), "Standard")
        wait(2)
        click($element offset(<login button>, 1), "Left Click""No")
        wait for browser event("Page Loaded""")
    }
    if("error") {
        then { My Command()
        }
        else {
        }
    }>

Link to post
Share on other sites

Dang it. It's still not working for me. I know I'm missing some stupid little thing. Can someone have a look at this code and let me know what I'm doing wrong? Thanks, it means a lot to me. 

 

<define $My Command {

    loop($table total rows(&accounts)) {
        navigate("https://twitter.com/""Wait")
        wait for browser event("Page Loaded""")
        type text(<for="signin-email">$random list item(%justaccountnames), "Standard")
        wait($rand(2, 5))
        type text(<for="signin-password">"password""Standard")
        wait($rand(2, 5))
        click($element offset(<login button>, 1), "Left Click""No")
        wait for browser event("Page Loaded""")
        if($exists(<innertext="Activate your account »">)) {
            then {
                My Command()
            }
            else {
            }
        } >

Link to post
Share on other sites

Change the wait for browser event to wait of element & in the advanced add a timeout. Obviously you will get the wait for element to wait for something like "log out".

Link to post
Share on other sites

No.... I actually just changed a few commands so it was a workaround. It's very frustrating learning all of this stuff. I'm learning quickly because I'm working on it most of the day but it pisses me off when I get hung up on stupid things. Thank for the help. You have no idea what it means to me. 

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...