Kev 69 Posted August 7, 2012 Report Share Posted August 7, 2012 Hi all, Today I noticed google's new homepage graphic - an interactive google game of hurdles. So, I tried to create a bot to give me an "unfair" advantage. The problem though seems to be sending the keys to the browser. Here's the code: navigate("https://www.google.com/doodles/hurdles-2012", "Wait") wait for element(<id="hplogo_pr">, "", "Appear") wait(1) click(<id="hplogo_pr">, "Left Click", "No") loop(10) { type text(<id="hplogo_pr">, "\{LEFT\}", "Standard") type text(<id="hplogo_pr">, "\{RIGHT\}", "Standard") type text(<id="hplogo_pr">, "\{LEFT\}", "Standard") type text(<id="hplogo_pr">, "\{RIGHT\}", "Standard") type text(<id="hplogo_pr">, "\{SPACE\}", "Standard") } Any ideas to get this guy gold? Quote Link to post Share on other sites
Kev 69 Posted August 7, 2012 Author Report Share Posted August 7, 2012 I can get him to sprint, it's now the jumping part I have a problem with (space bar) navigate("https://www.google.com/doodles/hurdles-2012", "Wait") wait for element(<id="hplogo_pr">, "", "Appear") focus(<id="hplogo_pr">) wait(1) click(<id="hplogo_pr">, "Left Click", "No") click(<id="hplogo_pr">, "Left Click", "No") loop(15) { click(<style="position: absolute; ">, "Left Click", "No") } loop(10) { type text(<style="position: absolute; ">, "\{SPACE\}", "Standard") Quote Link to post Share on other sites
Kev 69 Posted August 7, 2012 Author Report Share Posted August 7, 2012 Ok managed to get him to 12.2 secs navigate("https://www.google.com/doodles/hurdles-2012", "Wait") wait for element(<id="hplogo_pr">, "", "Appear") focus(<id="hplogo_pr">) wait(1) click(<id="hplogo_pr">, "Left Click", "No") click(<id="hplogo_pr">, "Left Click", "No") loop(150) { click(<style="position: absolute; ">, "Left Mouse Down", "No") } ANY help on the jumping would be really appreciated Quote Link to post Share on other sites
malefic 48 Posted August 7, 2012 Report Share Posted August 7, 2012 You can use the UP arrow key for jumping, not sure if that makes it any easier for you? Quote Link to post Share on other sites
Kev 69 Posted August 7, 2012 Author Report Share Posted August 7, 2012 It's getting ubot to actually do the pressing is where I'm falling down. Both the Up arrow and Space bar will trigger the jump, but I cant program it in ubot. Quote Link to post Share on other sites
Lauren 5 Posted August 7, 2012 Report Share Posted August 7, 2012 You can get .4 seconds just barreling through them all lol. 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.