lasse46 Posted May 10, 2006 Share Posted May 10, 2006 Hmm dont get the area to work with Pixelsearch, what i want is :Start X : 472Start Y : 405Width : 552Height : 432That is a box in the middle of the screen....like this : http://files.upl.silentwhisper.net/upload5/sfdfds.JPGThe only area i get to work is:PixelSearch( 0, 0, 1200, 1600, 0xE6FFE0, 20, 5 )how to i write a specific box in the center of the screen? Link to comment Share on other sites More sharing options...
Simucal Posted May 10, 2006 Share Posted May 10, 2006 Hmm dont get the area to work with Pixelsearch, what i want is :Start X : 472Start Y : 405Width : 552Height : 432That is a box in the middle of the screen....like this : http://files.upl.silentwhisper.net/upload5/sfdfds.JPGThe only area i get to work is:PixelSearch( 0, 0, 1200, 1600, 0xE6FFE0, 20, 5 )how to i write a specific box in the center of the screen?The search area you have defined above would be:PixelSearch(472,405, 1024, 837, 0xE6FFE0, 20, 5)Also, you do know that the '5' is going to have it skip every 5 pixels, right? AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
lasse46 Posted May 10, 2006 Author Share Posted May 10, 2006 yeah but i want it to follow a moving pixel in there, it just hits the same pixel over and over again... Link to comment Share on other sites More sharing options...
Simucal Posted May 10, 2006 Share Posted May 10, 2006 If you are attempting to find and lock on to a moving pixel look at the Aimbot example in my sig. Particularly, "AutoFind/Lockon" method I use with pixelsearching. AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
lasse46 Posted May 10, 2006 Author Share Posted May 10, 2006 Yes i want it to lock on it, but diden't understand jack of your aimbot.... Link to comment Share on other sites More sharing options...
Simucal Posted May 10, 2006 Share Posted May 10, 2006 To make things easier, I'll copy and paste the area of code I was talking about earlier: If $Aimbot = 5 Then; Auto Lock-On the first available target on screen If $found = "no" Then $coord = PixelSearch(10, 10, 800, 580, $searchcolor) If IsArray($coord) = 1 Then MouseMove($coord[0], $coord[1], 0) $found = "yes" EndIf Else $pos = MouseGetPos() $coord = PixelSearch(($pos[0] - 10) , ($pos[1] - 10) , ($pos[0] + 10) , ($pos[1] + 10), $searchcolor); refined locked on search area of 10sq'pixels If IsArray($coord) = 1 Then MouseMove($coord[0], $coord[1], 0) Else $found = "no" EndIf EndIf EndIf Do your intial pixelsearch for the color you are trying to lock on to. Once it finds it, refine your pixelsearch area to a 10sq pixel area around that pixel. Each time in the loop have it update the location of the pixel and search area accordingly. AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
lasse46 Posted May 10, 2006 Author Share Posted May 10, 2006 (edited) ehh, i think i should not go in to this.. No easier way? Edited May 10, 2006 by lasse46 Link to comment Share on other sites More sharing options...
Simucal Posted May 10, 2006 Share Posted May 10, 2006 Post exactly what you are attempting to do and I'd be willing to help you out after awhile. Include search area, color, description of what you trying to do, code you have thus far, screenshots of what you are trying to lock on to, etc. AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
lasse46 Posted May 10, 2006 Author Share Posted May 10, 2006 Ok, i think it's been done on this forum, but im doing it because I want to learn as well..It's "Curveball" =)http://files.upl.silentwhisper.net/upload6/12asda.JPG Link to comment Share on other sites More sharing options...
lasse46 Posted May 10, 2006 Author Share Posted May 10, 2006 I guess you not support that =) Link to comment Share on other sites More sharing options...
Paulie Posted May 10, 2006 Share Posted May 10, 2006 (edited) I guess you not support that =)I guess i can help since its not an MMO type game While 1 $size = WinGetPos(*title of window*) If Isarray($size) = 1 then $coord = PixelSearch($size[0], $size[1], $size[0] + $size[2], $size[1] + $size[3], 0xCCFEBF, 5, 2) If Not @error then Mousemove($coord[0],$coord[1],0) EndIf EndIf Wend All that concerns me is that the color of the ball changes as both your cursor moves over it, and as it moves towards the other side. but if these don't make errors for you, then somthing like this should work Edited May 10, 2006 by Paulie Link to comment Share on other sites More sharing options...
lasse46 Posted May 11, 2006 Author Share Posted May 11, 2006 BIG THANKS!..but its not fast enought . but i guess its not possible Link to comment Share on other sites More sharing options...
Simucal Posted May 11, 2006 Share Posted May 11, 2006 Of course it is possible.. we just arent going to write it for you.I gave you a code snippet for how to lock on to a pixel color, you can use shade variation if the color changes. Valuater has made a game bot for this exact game. You want some simple solution that is handed to you but you arent going to get it. At least, I'm not going to write it for you. If you have a specific question about a script that you are writing... post it. Otherwise quit wasting everyones time asking vague questions about a script you want written for you. AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
Paulie Posted May 11, 2006 Share Posted May 11, 2006 (edited) BIG THANKS!..but its not fast enought . but i guess its not possiblewell there are several things to do here to increase speed of that script, that was just a vague idea of what to do, but i'll help you further (sorry Simucal, but This is a game i might actually be able to work out.) Changes Make Mousemove($coord[0],$coord[1],0) into MouseClick("left",$coord[0],$coord[1],0) ~~~~~ Make $coord = PixelSearch($size[0], $size[1], $size[0] + $size[2], $size[1] + $size[3], 0xCCFEBF, 5, 2) into somthing like $coord = PixelSearch(370,370,890,730, 0xCCFEBF, 10, 5) and put Opt("mouseClickDownDelay",0) Opt("MouseClickDelay",0) At top of script That should do it Edited May 12, 2006 by Paulie 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