Jump to content

Click on a certain color


Recommended Posts

Hi Guys,

I play a game online that has chat boxes with tabs on top. So when someone sends you a message a red tab pops up and you click on it to see the message. I am trying to write a script that will click on that red tab when it pops up. I use pixelsearch all the time, but I'm not familiar with a command that will click on a certain color. Here is what I have, any suggestions?

WinWaitActive("Darkfall Online")

While 1

PrivateMessage()

sleep(10)

WEnd

Func PrivateMessage()

$GM = PixelSearch(517, 829, 1038, 851, 0xB61D1D, 250); searches tab area

If $GM = 1 Then

sleep(500)

send("{ESCAPE}");opens menu

sleep(1000)

MouseClick("left", 530, 990, 1,1);clicks on field to type response

sleep(1000)

send("Im here")

EndIf

EndFunc

But this doesnt click on the tab that just popped up =(

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