Jump to content

Recommended Posts

Posted

I am looking to create a bot that will find a specific color on your scree, then click X number of pixels down from the pixel that was found with the color.

Could anyone help me?

Posted

I am looking to create a bot that will find a specific color on your scree, then click X number of pixels down from the pixel that was found with the color.

Could anyone help me?

RTFM!!

Pixelsearch()

Posted

RTFM!!

Pixelsearch()

Yeah I did a search on the forum and I found a script that does color search, but I dont know the varieables as to how to make it find a specific color and what not

Sleep (5000)
Send("L")
Sleep (1000)
MouseClick("left")
Sleep (1000)

While 1
    $coor = PixelSearch( 129, 104, 423, 169, 0x3489e3, 2, 2 )
    If @error = 0 Then
        Opt("SendKeyDownDelay", 300000);will hold Space down for 5 min or until pixelcolor changes ??
        Send("{SPACE}")
        While 1
            $coor = PixelSearch( 129, 104, 423, 169, 0x3489e3, 2, 2 )
            If @error = 1 Then
                Opt("SendKeyDownDelay", 5)
                Send("{SPACE}")
                ExitLoop
            eNDiF
        Wend
    EndIf
Wend
Posted

thats alot, but one more question. How would I make the bot hit the tilde button (`/~)?

Like this?

Send("`")

or

Send("~")

or

Send("{TILDE}")

??

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
  • Recently Browsing   0 members

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