Results 1 to 2 of 2

Thread: Please help!!! ITS URGANT!!!

  1. #1
    ronny.m.p Guest

    Please help!!! ITS URGANT!!!

    Ok so im just scripting away until i turn around and test one of my scripts. It was going perfect until it came to a simple findcolortolerance procedure. I will post errors below. Anyways i then tried a few other scripts and even if they used to work they won't now!!! I haven't changed anything. It seems to go to the xs,ys coords. No matter what i set them to it just goes to em. If anyone has an explination please post ASAP!!!!

    ERROR:

    if(Findcolortolerance(x,y,StairColor,0,0,560,784)= true)then
    mouse(x,y,0,0,true);

  2. #2
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here, this will work.
    SCAR Code:
    if (FindColorTolerance(x, y, StairColor, 0, 0, 560, 784, 20)) then
       Mouse(x, y, 0, 0, True);
    You forgot to add the last integer, the tolerance.
    And if your using SRL, it looks like the cords you set it to look for are the whole main screen. Why not use msx1, msy1, msx2, msy2? But that is only if you have SRL. And another thing ill add is that that the procedure you are using will look for the color from left to right of the screen, if you want it to search from middle out use: FindColorSpiralTolerance. I also noticed how you set it to true, most procedures, or procedures that are booleans are automatically set to true when you leave it between an if then statement, like I did above.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •