Bobby 14 Posted April 20, 2012 Report Share Posted April 20, 2012 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 ) Quote Link to post Share on other sites
UBotBuddy 331 Posted April 21, 2012 Report Share Posted April 21, 2012 remove the special characters from the file name and try again. Quote Link to post Share on other sites
Bobby 14 Posted April 21, 2012 Author Report Share Posted April 21, 2012 Thank you UBotBuddy, but I tried it and unfortunately this didn't solve my problem Quote Link to post Share on other sites
Tony H. 16 Posted April 21, 2012 Report Share Posted April 21, 2012 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. Quote Link to post Share on other sites
Bobby 14 Posted April 21, 2012 Author Report Share Posted April 21, 2012 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") Quote Link to post Share on other sites
Mediadealer 1 Posted April 24, 2012 Report Share Posted April 24, 2012 i am having this exact same problem. would be great to get an answer on how to solve it. Quote Link to post Share on other sites
Tony H. 16 Posted April 24, 2012 Report Share Posted April 24, 2012 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 cheerstony 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. 2 Quote Link to post Share on other sites
Bobby 14 Posted April 24, 2012 Author Report Share Posted April 24, 2012 Wow Tony, thank you very much! I don't really see where I used JavaScript, but your idea really solved my problem! Danke! Quote Link to post Share on other sites
Tony H. 16 Posted April 24, 2012 Report Share Posted April 24, 2012 Hi Bobby, You are welcome! I am glad this helped.The part where you execute javascript starts like: eval("Math.ceil({..... CheersTony P.S. I see you know some german :-) Are you from germany as well? Quote Link to post Share on other sites
Bobby 14 Posted April 26, 2012 Author Report Share Posted April 26, 2012 Oh, I didn't realized that thats a JavaScript-Code, because I just used uBot's "eval". (We lived a few years long in Germany ) 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.