Jump to content
UBot Underground

Autostart not working right


Recommended Posts

Hi guys,

 

I tried to make my uBot autostart with following command:

 

"Pinger_1-1.exe" /auto

 

The problem is, that the Bot is opening (and the play-button seems to be clicked) but it's browser-window is empty (see attached screenshot) and after a few seconds the Bot closes.

 

How can I solve this?

 

Thanks!

 

Bobby

(just another uBot-lover :D)

post-3533-0-20347600-1334952455_thumb.jpg

Link to post
Share on other sites

I guess you need to insert some source code of your bot - otherwise it's hard to analyze whats going on. ;-)

A screenshot alone is good but does not help very much.

Link to post
Share on other sites

Here is the whole source (it's just a small bot, which pings my backlinks)

 

ui stat monitor("Links to ping:", $list total($list from file("{#bot_folder}Ping these links.txt")))
ui stat monitor("Loops left:", #loops_left)
ui check box("Don\'t use PingFarm:", #dont_ping_with_pingfarm)
divider
divider
set(#bot_folder, "{$special folder("Application")}\\", "Global")
clear list(%links_to_ping)
set(#loops_left, "?", "Global")
add list to list(%links_to_ping, $list from file("{#bot_folder}Ping these links.txt"), "Delete", "Global")
wait(5)
if($comparison($list total(%links_to_ping), ">", 1)) {
   then {
       if($comparison(#dont_ping_with_pingfarm, "!=", "true")) {
           then {
               set(#repeat_ping_process, $eval("Math.ceil({$list total(%links_to_ping)}/200);"), "Global")
               loop(#repeat_ping_process) {
                   navigate("http://www.pingfarm.com/index.php", "Wait")
                   wait for browser event("Everything Loaded", "")
                   wait(3)
                   if($comparison($list total(%links_to_ping), "<", 200)) {
                       then {
                           set(#links_loop, $list total(%links_to_ping), "Global")
                       }
                       else {
                           set(#links_loop, 200, "Global")
                       }
                   }
                   if($comparison(#loops_left, "=", "?")) {
                       then {
                           set(#loops_left, #repeat_ping_process, "Global")
                       }
                       else {
                       }
                   }
                   clear list(%few_links_to_ping)
                   set(#link_number, 0, "Global")
                   loop(#links_loop) {
                       add item to list(%few_links_to_ping, $list item(%links_to_ping, #link_number), "Delete", "Global")
                       increment(#link_number)
                   }
                   change attribute(<name="urls">, "value", %few_links_to_ping)
                   wait(5)
                   click($element offset(<tagname="input">, 4), "Left Click", "No")
                   wait for browser event("Everything Loaded", "")
                   wait(120)
                   wait for browser event("Everything Loaded", "")
                   wait(10)
                   wait for browser event("Everything Loaded", "")
                   navigate("http://pingdevice.com/", "Wait")
                   wait for browser event("Everything Loaded", "")
                   wait(3)
                   change attribute(<id="urls">, "value", %few_links_to_ping)
                   wait(3)
                   click(<id="start">, "Left Click", "No")
                   wait for browser event("Everything Loaded", "")
                   wait(120)
                   wait for element(<innerhtml="100%">, "", "Appear")
                   wait(3)
                   loop(#links_loop) {
                       set(#number_of_link_to_remove, $eval($subtract(#link_number, 1)), "Global")
                       remove from list(%links_to_ping, #number_of_link_to_remove)
                       decrement(#link_number)
                   }
                   set(#number_of_link_to_remove, 0, "Global")
                   wait(3)
                   save to file("{#bot_folder}Ping these links.txt", %links_to_ping)
                   wait(15)
                   decrement(#loops_left)
               }
           }
           else {
           }
       }
   }
   else {
   }
}
divider
divider
shell("{#bot_folder}Exit Pinger_1-1.bat")

Link to post
Share on other sites

Just checking quickly - at the first glance it looks like you guys are trying to execute some javascript without having navigated to a page before. See the page is being used as a "container" so if you have not navigated to a page before your javascript will not work or even produce an error.

 

The solution might be to just navigate to whatever page you want at the begging when starting the bot and before doing all the "magic".

The page where you navigate to does not really matter in this moment.

 

hope that helps

 

cheers

tony

 

P.S. In the studio you do not see this error because a page load on default!

P.P.S. You can even hide the page in the step after you loaded it/navigated to it - in case you want to set visibility to 0.

  • Like 2
Link to post
Share on other sites

Hi Bobby,

 

You are welcome! I am glad this helped.

The part where you execute javascript starts like: eval("Math.ceil({.....

 

Cheers

Tony

 

P.S. I see you know some german :-) Are you from germany as well?

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