Jump to content

Problems with identifying colors


Fi0da
 Share

Recommended Posts

After reading numerous posts about problems with capture of colors, but not search the help successfully.

My problem is ...

When I put the mouse on the screen of the game, got the information coordinator turer X & Y fine, but can not classify the background color of the screen.

0000000 always appears as if that image does not recognize

I am doing something wrong?

Thank you for answers. & Congrats for this cool forum.

I read ... I update ... I learn ...
Link to comment
Share on other sites

Rewording my question ...

I need to know if there is a possibility that the mouse capture the object (color) automatically ... ie. In the mouse stopped at any point of the screen, which arise when the object (color) at another point on the screen the mouse goes directly to the spot color?

grateful for the responses and a strong hug

I read ... I update ... I learn ...
Link to comment
Share on other sites

Rewording my question ...

I need to know if there is a possibility that the mouse capture the object (color) automatically ... ie. In the mouse stopped at any point of the screen, which arise when the object (color) at another point on the screen the mouse goes directly to the spot color?

grateful for the responses and a strong hug

No one??? :)

I read ... I update ... I learn ...
Link to comment
Share on other sites

i normaly take a screenshot and then find the color from there

maby that wil work :)

hmm ok ill try this...tkx for idea...

Now my 2nd quest...if the mouse can to go to a target colored when to appear in screen

Or i need to define the way of square???

Sry for noob questions ¬L¬

I read ... I update ... I learn ...
Link to comment
Share on other sites

While 1

Sleep(30)

$coord = PixelSearch(400, 200, 1130, 585, 0xFF0000)

If Not @error Then

MouseMove($coord[0], $coord[1], 0)

MouseClick($coord[0], $coord[1], 0, 0)

EndIf

WEnd

@Dear Pain...

MuOnline is a online game .

This Script run in a SS, but, in the game not run .

When i freeze and printscreen...the Infowin (Scite) show me all color codes, also show me coordinator ....but in real game...That Infowin only show the exactli coordinator but not show the colors in apoint mouse.

I understand that if the application Infowin (SciTE) does not identify the colors in the game, then the script will also not identify.

Just what is missing to run my bot

Thankx for reply man

I read ... I update ... I learn ...
Link to comment
Share on other sites

It worked? I can't see how, atleast not the code you posted. Take a look at MouseClick in the helpfile.

While 1
    Sleep(30)
    $coord = PixelSearch(58, 83, 435, 585, 0xFF0000)
    If Not @error Then
;MouseMove($coord[0], $coord[1], 0); no need to have this, mouseclick will move the mouse too.
        MouseClick("left", $coord[0], $coord[1], 1, 0)
    EndIf
    MouseMove(0, 0, 0); move the mouse to the upper left corner. change this.
WEnd

I think MouseClickDrag is what you are looking for.

Edited by Pain
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...