onedayillpay Posted November 23, 2006 Posted November 23, 2006 (edited) my abjectuv to search for teal and click on it, if teal is not found thin search for a darker shaid of teal and still if not found search even darker...i do have a script that i play with that works...but its Vary slopy...so ill post this script as an exmple... this script will search for teal"$Color" if teal is not found thin nothing happns now if $Color is not found thin how can i search for a new color "$Color1 im looking far an easy for for this to happn...i hav tryd a few differnt times but i get the same problem expandcollapse popup #include <Misc.au3> HotKeySet("!{ESC}", "Terminate") $Color = "0x00DC91";teal $Colo1 = "0x00CH90";red $dll = DllOpen("user32.dll") ;red 0x3D0000 ; blue 0x00005D teal 0x00DC91 While 1 If _IsPressed("01", $dll) Then $Pos = PixelSearch(0+5, 0+5, @DesktopWidth-5, @DesktopHeight-5, $Color, 10,1) If IsArray($Pos) Then MouseClick("left", $Pos[0], $Pos[1], 1, 0) if not IsArray($Pos) Then ; <----------------i was thinking maybe somthing like this If _IsPressed("01", $dll) Then $Pos1 = PixelSearch(0+5, 0+5, @DesktopWidth-5, @DesktopHeight-5, $Colo1, 10,1) If IsArray($Pos1) Then MouseClick("left", $Pos1[0], $Pos1[1], 1, 0) Else EndIf EndIf EndIf EndIf EndIf WEnd Func Terminate() Exit 0 EndFunc DllClose($dll) Edited November 23, 2006 by onedayillpay (adsbygoogle = window.adsbygoogle || []).push({}); mikehunt114 Posted November 23, 2006 mikehunt114 Active Members 651 Posted November 23, 2006 Something like this: $pos = PixelSearch($left, $top, $right, $bottom, $color, 10, 1) If IsArray($pos) Then ;click the coordinates Else $pos = PixelSearch($left, $top, $right, $bottom, $color, 15, 1) If IsArray($pos) Then ;click the coordinates Else $pos = PixelSearch($left, $top, $right, $bottom, $color, 20, 1) If IsArray($pos) Then ;click the coordinates EndIf EndIf EndIf Or if you want it to search until it finds 'something', do the same kind of thing, but use a For loop, with the shade variation as the count. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
onedayillpay Posted November 23, 2006 Author Posted November 23, 2006 Something like this: $pos = PixelSearch($left, $top, $right, $bottom, $color, 10, 1) If IsArray($pos) Then ;click the coordinates Else $pos = PixelSearch($left, $top, $right, $bottom, $color, 15, 1) If IsArray($pos) Then ;click the coordinates Else $pos = PixelSearch($left, $top, $right, $bottom, $color, 20, 1) If IsArray($pos) Then ;click the coordinates EndIf EndIf EndIf Or if you want it to search until it finds 'something', do the same kind of thing, but use a For loop, with the shade variation as the count. ok ill mess around with that....thanx
onedayillpay Posted November 23, 2006 Author Posted November 23, 2006 i new it would be easy...now i can perfect this aimbot all be able to get better aim out of it.. hopefully never miss i had the problme on were if some one was in a dark spot, the pixel wasnot found and i wouldnt hit anything..
onedayillpay Posted November 24, 2006 Author Posted November 24, 2006 ok...now i have a new question how can i make this porgram search the middle of your screen ummm... picture a square in the middle of your screen about 3inch's by 3inch's anything out side of the square wont be searched is what im trying to accomplish $Pos = PixelSearch(0+5, 0+5, @DesktopWidth-5, @DesktopHeight-5, $Color, 10,1) how can i change this... $Pos = PixelSearch(3, 3, @DesktopWidth-3, @DesktopHeight-3, $Color, 10,1)<---just a thought
AzKay Posted November 24, 2006 Posted November 24, 2006 (edited) Would it be something like: $Pos = PixelSearch(@DesktopWidth /2 -5, @DesktopWidth /2 -5, @DesktopWidth /2 +5, @DesktopHeight /2 +5, $Color) Well, that would search 5 pixels out from the center. Like, a 5 pixelsearch box. EDIT:: 10? Edited November 24, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- #
onedayillpay Posted November 24, 2006 Author Posted November 24, 2006 (edited) this works..i tryd yours but nothing happend thanx tho not sure if thats the middle of screen tho ill just pull out the ruler $Pos = PixelSearch(550,300,750,500, $Color, 10,1) $Pos = PixelSearch(@DesktopWidth /2 -5, @DesktopWidth /2 -5, @DesktopWidth /2 +5, @DesktopHeight /2 +5, $Color) Edited November 24, 2006 by onedayillpay
FreeFry Posted November 28, 2006 Posted November 28, 2006 (edited) This could probably be done by searching the pixels around the mouse(my preferred method), because in most (assuming this is in a 3d game) 3d games the mouse gets locked to the middle of the screen(game window) This is a snip of code from my aimbot: $SearchArea being the Area(in pixels) to search around the mouse $SearchColor being the color to search for $SearchDiff being the color variance $SearchStep being the amount of pixels to skip when searching $mPos = MouseGetPos() If Not $pause Then $cStatus = PixelSearch($mPos[0]-$SearchArea, $mPos[1]-$SearchArea, $mPos[0]+$SearchArea, $mPos[1]+$SearchArea, $SearchColor, $SearchDiff, $SearchStep) EndIf Edited November 28, 2006 by FreeFry
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