newbiescripter Posted June 3, 2008 Share Posted June 3, 2008 HelloOne 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 EndFuncHope 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 Link to comment Share on other sites More sharing options...
DexterMorgan Posted June 3, 2008 Share Posted June 3, 2008 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 More sharing options...
DexterMorgan Posted June 3, 2008 Share Posted June 3, 2008 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....It is good code Link to comment Share on other sites More sharing options...
Delta Posted June 3, 2008 Share Posted June 3, 2008 (edited) 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 June 3, 2008 by Deltaforce229 [size="1"]Please stop confusing "how to" with "how do"[/size] Link to comment Share on other sites More sharing options...
newbiescripter Posted June 4, 2008 Author Share Posted June 4, 2008 Did you just hit or did you hold it down? - you should hold it down to make it work Link to comment Share on other sites More sharing options...
Delta Posted June 5, 2008 Share Posted June 5, 2008 Did you just hit or did you hold it down? - you should hold it down to make it workI held it down. [size="1"]Please stop confusing "how to" with "how do"[/size] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now