Sign in to follow this  
Followers 0
nones

auto click color help

18 posts in this topic

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!

Share this post


Link to post
Share on other sites



Look at While + PixelSearch() + If/Then + MouseClick() + Sleep() + WEnd... If you have, then post the code you've tried to create but failed at.


[center]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.[/center]

Share this post


Link to post
Share on other sites

I didnt save it. =\ i knot it had like pixel finding part or somehting. I'm just looking for a whole new script

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I'm just looking for a whole new script

Yeah... See... That's not how we "Roll" here in AutoIt Land. Edited by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites

I'll try and re-make it and post it.

Share this post


Link to post
Share on other sites

I can't do it anymore i suck at this

Share this post


Link to post
Share on other sites

I can't do it anymore i suck at this

I'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.


[center]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.[/center]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

is there somewhere i can pay for this script to be made for me?

Share this post


Link to post
Share on other sites

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

Look 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.

[center]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.[/center]

Share this post


Link to post
Share on other sites

is there somewhere i can pay for this script to be made for me?

http://rentacoder.com/RentACoder/default.asp

[center]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.[/center]

Share this post


Link to post
Share on other sites

I looked in help file for the things you posted how do i combine them

Share this post


Link to post
Share on other sites

I looked in help file for the things you posted how do i combine them

Do 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.

[center]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.[/center]

Share this post


Link to post
Share on other sites

ok i made a script

("MouseCoordMode", 0)

("PixelCoordMode", 0)

("MouseClickDelay", 0)

("MouseClickDownDelay", 0)

very wrong

Share this post


Link to post
Share on other sites

#15 ·  Posted (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 by nones

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ...

Share this post


Link to post
Share on other sites

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 ^^

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0