Google Halloween Game - Bot

Post gaming related scripts
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Google Halloween Game - Bot

31 Oct 2016, 05:30

Just a little script I wrote because I was bored.
  • Run the script
  • Go to google
  • place your mouse in the middle of the screen
  • press numpad 0
  • do the turorial (if you spam during the tutorial, the game won't continue properly)
  • use F2-F7 to draw the shapes you want individually
  • or just hold Ctrl+Space to spam all the commands
You might need a little luck to get through the whole game on the first try. But I have managed to do it without dying just with Ctrl+Space.

Code: Select all

SetDefaultMouseSpeed, 2
MouseGetPos, x, y
Return

Numpad0::Reload
F2::HorizontalLine()
F3::VerticalLine()
F4::ArrowDown()
F5::ArrowUp()
F6::Lightning()
F7::Heart()

^Space::SmarterAuto()

HorizontalLine() {
    Global
    Send, {LButton Down}
    MouseMove, x+10, y
    Send, {LButton Up}
    MouseMove, x, y
}
VerticalLine() {
    Global
    Send, {LButton Down}
    MouseMove, x, y+10
    Send, {LButton Up}
    MouseMove, x, y
}
ArrowDown() {
    Global
    Send, {LButton Down}
    MouseMove, x+10, y+10
    MouseMove, x+10+10, y
    Send, {LButton Up}
    MouseMove, x, y
}
ArrowUp() {
    Global
    Send, {LButton Down}
    MouseMove, x+10, y-10
    MouseMove, x+10+10, y
    Send, {LButton Up}
    MouseMove, x, y
}
Lightning() {
    Global
    Send, {LButton Down}
    MouseMove, x, y+20
    MouseMove, x+20, y+20
    MouseMove, x+20, y+40
    Send, {LButton Up}
    MouseMove, x, y
    Sleep, 250 ;has a long animation
}
Heart() {
    Global
    Send, {LButton Down}
    MouseMove, x-10, y-10
    MouseMove, x, y+20
    MouseMove, x+10, y-10
    MouseMove, x, y
    Send, {LButton Up}
    MouseMove, x, y
    Sleep, 350 ;has a long animation
}
Auto() {
    Loop {
        HorizontalLine()
        VerticalLine()
        ArrowDown()
        ArrowUp()
        Heart()
        Lightning()
        If (!GetKeyState("Space"))
            Break
    }
}
SmarterAuto() {
    Loop {
        Loop, 4 {
            HorizontalLine()
            VerticalLine()
            ArrowDown()
            ArrowUp()
        }
        Heart()
        Lightning()
        If (!GetKeyState("Space"))
            Break
    }
}
I'm not planning on improving this.
Last edited by Bruttosozialprodukt on 01 Nov 2016, 02:47, edited 1 time in total.
User avatar
SnowFlake
Posts: 368
Joined: 28 Apr 2015, 05:41
Contact:

Re: Google Halloween Game - Bot

31 Oct 2016, 11:25

i don't see the F10 in there, "or just hold F10 to spam all the commands"
:yawn:
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: Google Halloween Game - Bot

01 Nov 2016, 02:46

Oh yeah I'm sorry I changed that to Ctrl+Space. Well, I guess it's too late now. xD

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 111 guests