Jump to content

auto click color help


nones
 Share

Recommended Posts

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!

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
Share on other sites

  • Moderators

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.

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.

Link to comment
Share on other sites

  • Moderators

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.

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.

Link to comment
Share on other sites

  • Moderators

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.

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.

Link to comment
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.

Link to comment
Share on other sites

  • 1 year later...

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

Link to comment
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 ^^
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...