patopop007 Posted September 27, 2009 Posted September 27, 2009 I just started working with AutoIt recently and I am currently trying to make an aimbot that will search for a user defined pixel and click it. I would really want it so that you can drag a selection and it will search for that pixel in that selection (dont have any idea how to do that). I want it to have a hotkey to set the pixel it will search for and then another hotkey to start searching and clicking (left click) and a third hotkey to stop it (not sure how to do this)... Playing around with some codes I got this far: #include <GuiConstants.au3> Dim $Game, $MID HotKeySet( "{f3}", "chosecolor") Global $color Func chosecolor() $color = Pixelgetcolor($pos[0],$pos[1]) EndFunc Opt("PixelCoordMode", 0) $Game = NOT $Game If $Game Then ToolTip('BOT RUNNING',0,0) While $Game ; search left, top, right bottom for my color, color varience of 50 shades, check every 10 pixels. $ball = PixelSearch( 49, 75, 430, 330, $color, 50, 10) If Not @error Then MouseClick("left", $ball[0], $ball[1], 1, 0) WEnd It doesn't work at all... I am not exactly sure what I am doing wrong because I dont fully understand most of this. Again all I need is a simple point and click pixelsearch bot... All help is greatly appreciated
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