Jump to content
UBot Underground

Google Hurdles


Recommended Posts

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?

Link to post
Share on other sites

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

Link to post
Share on other sites

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 :)

Link to post
Share on other sites

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.

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