nones Posted February 14, 2007 Posted February 14, 2007 Ok I have been at it for an hour now... I just can't figure it out... I need a autoit script that finds the color i choose then double left clicks it then waits 5 seconds then repeats that until i stop the script... If someone could post a script like that it would be a big help!
Moderators SmOke_N Posted February 14, 2007 Moderators Posted February 14, 2007 Look at While + PixelSearch() + If/Then + MouseClick() + Sleep() + WEnd... If you have, then post the code you've tried to create but failed at. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
nones Posted February 14, 2007 Author Posted February 14, 2007 I didnt save it. =\ i knot it had like pixel finding part or somehting. I'm just looking for a whole new script
Moderators SmOke_N Posted February 14, 2007 Moderators Posted February 14, 2007 (edited) I'm just looking for a whole new scriptYeah... See... That's not how we "Roll" here in AutoIt Land. Edited February 14, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Moderators SmOke_N Posted February 14, 2007 Moderators Posted February 14, 2007 I can't do it anymore i suck at thisI've given you the functions to look at in the help file, they all have examples to boot.If you gave up after 6 minutes... this isn't probably for you... might want to take up needle point or something. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
nones Posted February 14, 2007 Author Posted February 14, 2007 whats that? and i looked in the help file i just dn't get how to find the color click the color 2 times repeat
nones Posted February 14, 2007 Author Posted February 14, 2007 is there somewhere i can pay for this script to be made for me?
Moderators SmOke_N Posted February 14, 2007 Moderators Posted February 14, 2007 whats that? and i looked in the help file i just dn't get how tofind the colorclick the color 2 timesrepeatLook at Post #2 of this thread, I gave you the functions to do that... then look at their examples... if it's all confusing... Do this tutorial: http://www.autoitscript.com/forum/index.php?showtopic=21048 . No one is going to write it for you, you won't learn that way, you'd just get out cheap. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Moderators SmOke_N Posted February 14, 2007 Moderators Posted February 14, 2007 is there somewhere i can pay for this script to be made for me?http://rentacoder.com/RentACoder/default.asp Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
nones Posted February 14, 2007 Author Posted February 14, 2007 I looked in help file for the things you posted how do i combine them
Moderators SmOke_N Posted February 14, 2007 Moderators Posted February 14, 2007 I looked in help file for the things you posted how do i combine themDo the Tutorial... Then post your questions once you've made an effort to understand. No one will hold your hand through every step, it takes initiative on your part to get things done here. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
nones Posted February 14, 2007 Author Posted February 14, 2007 ok i made a script ("MouseCoordMode", 0) ("PixelCoordMode", 0) ("MouseClickDelay", 0) ("MouseClickDownDelay", 0) very wrong
nones Posted February 14, 2007 Author Posted February 14, 2007 (edited) Kinda trying to make an aim bot, not for a shooting game though i need it to click monster and then wait for a couple seconds while i kill it Edited February 14, 2007 by nones
Paulie Posted February 14, 2007 Posted February 14, 2007 Kinda trying to make an aim bot, not for a shooting game though i need it to click monster and then wait for a couple seconds while i kill it...smoke gave you the function, basically in order that they should be used.just look at "Welcome to Autoit 1-2-3" (find it by searching) and there is even a section on aimbots in it.
t0nki Posted August 22, 2008 Posted August 22, 2008 Sry that i revive this old thread but i didnt want to crate a new one <.< Okay ive made a script but i have some problems i wanted to create 2 functions 1. to tell the bot where it should go and 2. to show me the coordinates where my mouse aims well Dim $Monstercolor = 0xC5AB44 Dim $DOMO, $Coords HotKeySet("{F8}", "Attack") HotkeySet("{F9}", "Coords") Opt("MouseCoordMode", 0) Opt("PixelCoordMode", 0) Func Attack() $DOMO = NOT $DOMO If $DOMO Then ToolTip('Press (F9) to Start/Stop',0,0) While $DOMO $Pixel = PixelSearch( 49, 75, 430, 330, $Monstercolor, 50, 10) If Not @error Then MouseClick("left", $Pixel[0], $Pixel[1], 1, 0) WEnd ToolTip("") EndFunc Func Coords() $Coords = NOT $Coords While $Coords $posi = MouseGetPos() ToolTip('Mouse coordinates ' & @CRLF & " X = " & $posi[0] & @CRLF & " Y = " & $posi[1],0,0) Sleep(20) WEnd ToolTip("") EndFunc so now i basicly it should when i press F8 Search for the color and then click on it and when i press f9 it should show me the coords. well but when i try it nothing happens ...
t0nki Posted August 22, 2008 Posted August 22, 2008 Sry that i revive this old thread but i didnt want to crate a new one <.< Okay ive made a script but i have some problems i wanted to create 2 functions 1. to tell the bot where it should go and 2. to show me the coordinates where my mouse aims well Dim $Monstercolor = 0xC5AB44 Dim $DOMO, $Coords HotKeySet("{F8}", "Attack") HotkeySet("{F9}", "Coords") Opt("MouseCoordMode", 0) Opt("PixelCoordMode", 0) Func Attack() $DOMO = NOT $DOMO If $DOMO Then ToolTip('Press (F9) to Start/Stop',0,0) While $DOMO $Pixel = PixelSearch( 49, 75, 430, 330, $Monstercolor, 50, 10) If Not @error Then MouseClick("left", $Pixel[0], $Pixel[1], 1, 0) WEnd ToolTip("") EndFunc Func Coords() $Coords = NOT $Coords While $Coords $posi = MouseGetPos() ToolTip('Mouse coordinates ' & @CRLF & " X = " & $posi[0] & @CRLF & " Y = " & $posi[1],0,0) Sleep(20) WEnd ToolTip("") EndFunc so now i basicly it should when i press F8 Search for the color and then click on it and when i press f9 it should show me the coords. well but when i try it nothing happens ... Well i found the problem and its working now ^^
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