Results 1 to 9 of 9

Thread: Getting text from text window?

  1. #1
    Join Date
    Mar 2007
    Posts
    128
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Getting text from text window?

    Is it possible to get the text from the game text window? What I want to do is check the text window and see if it says "Oh dear you're dead!", and make a failsafe.
    Is it possible to get the text from the game text window and then convert that to a string?
    Or is there an easier way to do this?

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    go to your programfiles-->scar 3.15--->includes-->srl--->srl---> search somehwere in this map for chat functions or text function or procedures afcourse

    edit:
    i could also show you a procedure but you can better look in the include it will fit in all your needs
    ~Hermen

  3. #3
    Join Date
    Mar 2007
    Posts
    128
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In which script :S?

  4. #4
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    in a .scar INCLUDE SCript it is a .scar but still it is an include erhm text.scar or chat.scar

    btw, don't forget to turnh your brains on -.- you know you were searching for text so.... text.scar
    ~Hermen

  5. #5
    Join Date
    Mar 2007
    Posts
    128
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermpie View Post
    in a .scar INCLUDE SCript it is a .scar but still it is an include erhm text.scar or chat.scar

    btw, don't forget to turnh your brains on -.- you know you were searching for text so.... text.scar
    Oh, you see the way I saw it I thought you were mentioning a specific script by the way you said this:
    go to your programfiles-->scar 3.15--->includes-->srl--->srl---> search somehwere in this map for chat functions
    I thought you were mentioning a specific part of a specific script, since in this dictionary there are no actual files, there's just subfolders. Therefore I had reason to believe that you were pointing at a specific file, and not telling me to search through them. :P.

    Found what I was looking for:
    InChat() should work.

    EDIT:
    i could also show you a procedure
    That'd be cool =D!

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

    Default

    Yes it is. use FindText (i think) and then go to ur scar folder and look in the chars folder. There should be some folders of characters. Those are the names(or close to the names) of the different fonts runescape uses.
    ~ Metagen

  7. #7
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Depending on which type of text you want there are several methods of doing this.

    If you want the black message text such as 'Oh dear you are dead' and stuff you can use one of the functions in Text.scar. I would say IsChatBlackTextAnyLine is a good way to go.

    If you want the blue chat text then InChat should work.

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

    Default

    Or:
    SCAR Code:
    If FindBlackChatMessage('ear you ar') then
    ^ That should find it quicker, But note it is only on the last line of the chatbox.

    Hope I Helped

  9. #9
    Join Date
    Mar 2007
    Posts
    128
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Or:
    SCAR Code:
    If FindBlackChatMessage('ear you ar') then
    ^ That should find it quicker, But note it is only on the last line of the chatbox.

    Hope I Helped
    Yep, that's what I was looking for, thank you.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Grabbing or reading Text from a game text box
    By British in forum OSR Help
    Replies: 16
    Last Post: 02-27-2009, 08:02 AM
  2. Text help
    By Leech in forum OSR Help
    Replies: 2
    Last Post: 10-03-2008, 07:55 PM
  3. Clicking Skill up text in MC window
    By Bramble in forum OSR Help
    Replies: 2
    Last Post: 12-05-2006, 04:49 PM
  4. Find text in chat window... How do I do this?
    By solarwind in forum OSR Help
    Replies: 4
    Last Post: 10-21-2006, 12:22 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
  •