Results 1 to 4 of 4

Thread: GetUptext improvements?

  1. #1
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default GetUptext improvements?

    Was just mining and I saw uptext return this: "Mine ro$ks". Which of course makes no sense, so what if we edit the rs_getuptext to have the ability to only allow certain characters to be matched, we might get better results?

    Second of all, someone should create a IsUptext function that uses "Approximate string matching"
    Link1
    Link2

    Of course, you would need to get rid of the "/ x more options" part etc.. But which such an algorithm (opposed to a simple pos-search) it would still return "Mine ro$ks" as a hit, when checking against "Mine rocks", since the strings just differ in 1 character.

    EDIT: And another note; Uptext is really just checking if certain text is at the top-left corner.. There must be a smarter way to do this then by using OCR. (After all it's the same as object finding, only now with your object being a string of text).

    EDIT2: Hihi, wiki says: "This has a wide range of applications, for instance, spell checkers, correction systems for optical character recognition..."
    Last edited by mastaraymond; 10-31-2011 at 10:57 AM.
    Verrekte Koekwous

  2. #2
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    I'd say go for it

    -RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  3. #3
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    I can relate. Although I was having problems with the chatbox messages.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  4. #4
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Ha I was thinking about this just yesterday and was working on a function for it.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

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
  •