Results 1 to 9 of 9

Thread: IsUpText problem

  1. #1
    Join Date
    Jul 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default IsUpText problem

    Simple as hell.
    This is a piece of my code:

    SCAR Code:
    If IsUpText('Chop') then
              Begin
                   Repeat
                         Wait(100+Random(100));
                   Until(IsUpText('Chop')=false)


    Problem?
    IsUpText('Chop') is always 'false' It doesn't work. I've tried ('hop'), ('Chop down Yew'), almost everything. Please help.

  2. #2
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I think they're having problem with UpText. I could be wrong, but it's not working for me either. I'm trying to find my own way around it though.

  3. #3
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Yes, uptext currently isn't working with 3.22 SCAR or lower. Freddy recently released a new version of SCAR that is suppose to have a completely new OCR for uptext. Go to his site and I think you have to get it through his respiratory.

    http://www.villavu.com/forum/showthread.php?t=53779 <-- Link to thread on villavu
    Last edited by HyperSecret; 12-30-2009 at 05:48 PM.

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Also try adding a short wait in between your MMouse command, and IsUpText statement.

  5. #5
    Join Date
    Jul 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for ideas and advices.
    Do you have any ideas about checking if the mouse is over a tree?

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by yahretzkee View Post
    Thanks for ideas and advices.
    Do you have any ideas about checking if the mouse is over a tree?
    That's generally what IsUpText is for. However, if you can't get it to work, people have used CountColors functions. I've also used ChooseOption as an alternative.

  7. #7
    Join Date
    Jul 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok

  8. #8
    Join Date
    Jul 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    That's generally what IsUpText is for. However, if you can't get it to work, people have used CountColors functions. I've also used ChooseOption as an alternative.
    I don't quite understand how does 'ChooseOption' or 'CountColors' work.

  9. #9
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by yahretzkee View Post
    I don't quite understand how does 'ChooseOption' or 'CountColors' work.
    read some tutorials then.

    ChooseOption(option: string); after you right click the object, you get the command menu. ex. chooseoption('hop') would choose Chop after clicking a tree.

    CountColor(Color: integer; x1, y1, x2, y2: integer);

    counts a specific color in the box specified. In terms of uptext, you would get points to make a box around the uptext area, and use the color of the uptext. if it counts the color of the uptext in the box, then the uptext must be correct (or should hopefully be).
    “Ignorance, the root and the stem of every evil.”

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
  •