Jump to content

Sheep Dash! - Bot


Recommended Posts

Hello

One of my friends ask me if I could make a bot for a little game called Sheep Dash!

Find it on: http://www.bbc.co.uk/science/humanbody/sleep/sheep/

It's very simple and because of that. I add it into here in hope that it could help some of the many people, who ask in the forum how to start making small bots for flash and java applets.

Here comes the code: ( You might have to change the resolution to 1400x900 or else change the coords in pixelsearch )

; Simple Bot for Sheep Dash! using pixelsearch
; find the game on:
; http://www.bbc.co.uk/science/humanbody/sleep/sheep/

#include <Misc.au3>

HotKeySet("{ESC}","terminate")

TrayTip("Sheep Dash! - Bot","Hold down G to start" & @CRLF & "and press ESC to exit",30)

$dll = DllOpen("user32.dll")

While 1
    While _IsPressed("47", $dll)
        
        PixelSearch(250,311,251,593,0x666666)
        If Not @error Then
            MouseClick("left",430,660,1,0)
            MouseMove(431,661,0)
        EndIf
        
        PixelSearch(313,311,314,703,0x666666)
        If Not @error Then
            MouseClick("left",430,660,1,0)
            MouseMove(431,661,0)
        EndIf
        
    WEnd
WEnd

DllClose($dll)

Func terminate()
    Exit
EndFunc

Hope someone could learn of it and maybe there is one who knows a much better way. if then post it in here :)

By the way see the screenshot, pretty funny i think, but it doesn't happend all the time.

Regards

post-24573-1212505561_thumb.jpg

Link to comment
Share on other sites

Hello

One of my friends ask me if I could make a bot for a little game called Sheep Dash!

Find it on: http://www.bbc.co.uk/science/humanbody/sleep/sheep/

It's very simple and because of that. I add it into here in hope that it could help some of the many people, who ask in the forum how to start making small bots for flash and java applets.

Here comes the code: ( You might have to change the resolution to 1400x900 or else change the coords in pixelsearch )

; Simple Bot for Sheep Dash! using pixelsearch
; find the game on:
; http://www.bbc.co.uk/science/humanbody/sleep/sheep/

#include <Misc.au3>

HotKeySet("{ESC}","terminate")

TrayTip("Sheep Dash! - Bot","Hold down G to start" & @CRLF & "and press ESC to exit",30)

$dll = DllOpen("user32.dll")

While 1
    While _IsPressed("47", $dll)
        
        PixelSearch(250,311,251,593,0x666666)
        If Not @error Then
            MouseClick("left",430,660,1,0)
            MouseMove(431,661,0)
        EndIf
        
        PixelSearch(313,311,314,703,0x666666)
        If Not @error Then
            MouseClick("left",430,660,1,0)
            MouseMove(431,661,0)
        EndIf
        
    WEnd
WEnd

DllClose($dll)

Func terminate()
    Exit
EndFunc

Hope someone could learn of it and maybe there is one who knows a much better way. if then post it in here :)

By the way see the screenshot, pretty funny i think, but it doesn't happend all the time.

Regards

OMG, i love this game... Im going to use this... Me and my friend SUCK at it...

Thanks,

Ill tell you if i like it....

code
Link to comment
Share on other sites

It dont work for me. I hit G and nothing happens.

Edit: got it to work by unquoting "47". Also a dll is not required.

Edited by Deltaforce229

[size="1"]Please stop confusing "how to" with "how do"[/size]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...