Results 1 to 12 of 12

Thread: IsUpText Problems

  1. #1
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default IsUpText Problems

    When I use IsUpText sometimes it is not finding the uptext. Here is the function I use it in, I am, obviously, using it to find a range. Any help is appreciated. Thank you.

    - Dusk412

    if (IsUpText('range')) then
    begin
    GetMousePos(x, y);
    Mouse(x, y, 0, 0, False);
    if (ChooseOption('ooking')) then
    begin
    FFlag(0);
    Result := True;
    Write('Found Range');
    Exit;
    end;
    end;

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Make sure the case of the uptext is correct. Range is different than range. If you're sure that's correct, if you've changed the ColorToleranceSpeed in that function, you might need to return it back to what it was originally.

    If none of these fix your problem, I'm not really sure what to tell you.
    :-)

  3. #3
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It is a lowercase range and I did not change ColorToleranceSpeed. Thanks anyway. If the word range is blue instead of the usual white would that make a difference?

  4. #4
    Join Date
    May 2008
    Posts
    203
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    What's the full text you're reading? If it's a semi-lengthy text, it could be too far to the right to read it. Try another word if there is one.

  5. #5
    Join Date
    Oct 2007
    Location
    If (Online) then Loc := ('On comp') else Loc := ('Somewhere else!');
    Posts
    2,020
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is uptextmulticustom

  6. #6
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wait(50); is the solver of many a problem insert this whenever you feel like you are just so fed up that you want to waste a few milllion CPU cycles

    Hint: Oh thee heathen! put a wait(50) before you isuptext or thou shalt surely as the sun falleth at night be a ... i dont know whatever you feel like being atm.
    ~ Metagen

  7. #7
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol thanks that it is too far right may be the problem, i will also try wait 50 lol.

  8. #8
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  9. #9
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Or use bitmap finding on the uptext

  10. #10
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  11. #11
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    what program do i need to amke a bitmap mask? Cuz im sure i cant use microsof paint

  12. #12
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IsUpText.
    By kooldude in forum OSR Help
    Replies: 7
    Last Post: 06-08-2007, 06:13 AM

Posting Permissions

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