Results 1 to 8 of 8

Thread: Finding text/ detecting text/ reading text in old school

  1. #1
    Join Date
    Dec 2011
    Location
    Lubbock, Texas
    Posts
    225
    Mentioned
    3 Post(s)
    Quoted
    93 Post(s)

    Default Finding text/ detecting text/ reading text in old school

    I have the p07 include and everything set up correctly. I am able to use getuptext with success. I was wondering if there is anyway to detect text on the main screen that is not up text and if there is a way to read text where the text is.

    Example:
    I would like to read how much of a type of pickaxe there is in the pickaxe shop. I would need for it to read the yellow text on the left top corner of that items icon. Idk how to do that.

    Another Example (perhaps more important):
    When i click on the pickaxe I want to be able to read and return how much the pickaxe costs.

    Any help, points, and sample code would be greatly appreciated! thanks!

  2. #2
    Join Date
    Jan 2012
    Posts
    369
    Mentioned
    6 Post(s)
    Quoted
    91 Post(s)

    Default

    You would have to identify the font and make use of the function GetTextAtExWrap

  3. #3
    Join Date
    Dec 2011
    Location
    Lubbock, Texas
    Posts
    225
    Mentioned
    3 Post(s)
    Quoted
    93 Post(s)

    Default

    How would i identify the font?

  4. #4
    Join Date
    Jan 2012
    Posts
    369
    Mentioned
    6 Post(s)
    Quoted
    91 Post(s)

    Default

    Quote Originally Posted by grahambr View Post
    How would i identify the font?
    Well, usually each font pack has it's own name and you can identify them by name which represents the area of the game where they are being used.

    At the moment I also have no idea where I can get my hands on other fonts from 2007 except the uptext . If someone would be kind enough to share the pack, that would be awesome.

  5. #5
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    The unofficial Rs include does not have NPC font but you can choose option text via:

    Simba Code:
    P07_ChooseOptionMulti(['ithdraw All','thdraw All']);

  6. #6
    Join Date
    Nov 2011
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by speedster View Post
    You would have to identify the font and make use of the function GetTextAtExWrap
    Sorry to highjack the thread, but I was having a similar problem. I'm now using the function you suggested but it's only spitting out the number 8 even if there is no 8 for it to grab. I'm totally at a loss as to what the parameters even mean, and the documentation doesn't exactly help. Any help would be appreciated.

  7. #7
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by i_liek2feesh View Post
    Sorry to highjack the thread, but I was having a similar problem. I'm now using the function you suggested but it's only spitting out the number 8 even if there is no 8 for it to grab. I'm totally at a loss as to what the parameters even mean, and the documentation doesn't exactly help. Any help would be appreciated.
    Pretty much you have to make your own font, look at @DannyRS 2007 and 2006 includes, he might be able to help you

  8. #8
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    One of the TextTPA functions in Simba returns a position, the others are mostly just for reading what the text say's and getting it in a string, so you can do things based on text on screen, you need to find the font's in simba/archives and then use that in the parameters


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

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
  •