Results 1 to 12 of 12

Thread: Can't find Text(IsUpText)

  1. #1
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Can't find Text(IsUpText)

    In my script I search for the text 'Open' in the lefthand corner(IsUpText). But the background behind the text is the wall of a fally house. And that wall is a bit white and so it the text. So my script can't find the text. Does some1 knows how to let my script find the text even when the text is in front of a white wall(Fally house).

    Any help please?

    Fearlesssss

  2. #2
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Lower the angle or rotate the screen.
    Hup Holland Hup!

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Try pen, captials can cause problems

  4. #4
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I alreaddy used 'pen' but it didn't worked. Rotating the screen is ok but it is really detectable if i rotate the screen everytime when I come to that point. But ill figure something out. Thanks

  5. #5
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    try rotating b4 u get there and have it be a random time while ur walking to that wall
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  6. #6
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'll figure something out.. Thnx for your help guys

  7. #7
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay this is a pretty bad example but hope u get the idea.

    Finding Chicken...

    SCAR Code:
    if(FindColorTolerance(X, Y, ChickenColor, 0, 0, 100, 100, 4)) then
      begin
        MMouse(X, Y, 3, 3)
        if(IsUpText('ick')) then
          Mouse(X, Y, 3, 3)
      end;

    Prolly this would work, but it doesn't u should do it this way

    SCAR Code:
    if(FindColorTolerance(X, Y, ChickenColor, 0, 0, 100, 100, 4)) then
      begin
        Wait(50+random(100))
        MMouse(X, Y, 3, 3)
        Wait(100+random(150)) ///Give it time to spot the text, but not letting the chicken away :/
        if(IsUpText('ick')) then
          Wait(25+random(50))
          Mouse(X, Y, 3, 3)
      end;

    But yes, hope u get the idea. Use Waits!!
    But if ur doing a autofighter this isn't the way I suggest to do it

  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Yea uptext is prety shaky.
    Rotating and trying again helps.
    But what also helps A LOT is IsupTexMulti.
    SCAR Code:
    If IsUpTextMulti('Open','pen','en') Then

  9. #9
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for all the help. It works now! W00T
    Tnx all!

  10. #10
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    If all else fails, the most reliable way to find text that I have found is to use DTMs. The color of the text changes depending on the background color, but you can use a lot of tolerance on your points, so that isn't a problem. And the spacing of the text also changes randomly, but you can add position tolerance to your DTM points as well.

    Junior was having recurring text problems with his air crafter, and he used DTMs to solve them permanently. In fact, I use DTMs for ALL my important text finding, since they are much more reliable.

    It looks like you already found a solution, but if problems continue think about DTMs.

  11. #11
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Dtm

    That's maybe a even better idea! Tnx. Cuz it still is rlly detectable if I rotate my screen when I'm at that point and somewhere else not. And also I can't rotate my screen everywhere cuz then all my radialwalking procedures will fail. I'll try to make a DTM of the text now tyvm!

  12. #12
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    If you use DTMs, it takes a little tweaking to get them perfect. The best thing to do is have it take a screenshot every time it fails to detect the text (when you know it should be there). Then you can test your DTM against the screenshot and see if you need to tweak the position of the points a little bit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. find text
    By elobire in forum OSR Help
    Replies: 8
    Last Post: 12-13-2008, 04:28 PM
  2. How do I find text?
    By Dudenow12 in forum OSR Help
    Replies: 6
    Last Post: 11-13-2007, 12:44 AM
  3. How can I find this text?
    By PwNZoRNooB in forum OSR Help
    Replies: 2
    Last Post: 05-22-2007, 01:03 PM
  4. until find text
    By macromacro123 in forum OSR Help
    Replies: 3
    Last Post: 03-17-2007, 09:52 PM

Posting Permissions

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