Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31

Thread: Text Grabbing/Finding - By Naum

  1. #26
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Alligaattor View Post
    I just cant figure out how to find text that pops up after right click on npc...
    Either im stupid or just can't translate english to finnish :S
    Use ChooseOption functions.
    http://freddy1990.com/srlmanual/SRL/core/Text.html
    http://freddy1990.com/srlmanual/SRL/core/Timing.html

    The simple ChooseOption or WaitOption is enough most of the cases.

  2. #27
    Join Date
    Oct 2006
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    NPCChars := Chat text that the NPC makes e.g like the chat the Banker says like 'would you like to access your account?'
    TradeChars := Not used but its the text in the trade screen e.g 'Accept'
    SmallChars := Normal Chat text
    StatChars := Letters of the stats
    UpChars := The letters of the uptext
    can you post screenshots of the examples of each text type? Specifically, I was wondering what the options text is, such as "Walk here" or "Climb-up Ladder" or "Wield Rune pickaxe," that appears at the top left of your screen.

  3. #28
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hairy Pomegranate View Post
    can you post screenshots of the examples of each text type? Specifically, I was wondering what the options text is, such as "Walk here" or "Climb-up Ladder" or "Wield Rune pickaxe," that appears at the top left of your screen.
    Err.. "UpChars := The letters of the uptext"

  4. #29
    Join Date
    Oct 2006
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ian. View Post
    Err.. "UpChars := The letters of the uptext"
    oh that's called "uptext?" Thanks for the help

  5. #30
    Join Date
    Mar 2013
    Posts
    59
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Ok so I'm trying the FindText because I am trying to make antirandom for the pickaxe head falling off.
    So I made this procedure (note it's just a test):
    Simba Code:
    Procedure AxeHead;
    begin
      If FindText (x, y, 'ou need a pickaxe', NPCCHARS, MCX1, MCY1, MCX2, MCY2) Then
        Mouse(x, y, 1, 1, True);
    end;
    But it returned this error:
    [Error] C:\Users\Mikkoz\Desktop\IronMiner.simba(28:16): Unknown identifier 'x' at line 27
    Compiling failed.
    The x was this one: FindText (x <--
    But then I tried adding Var
    Simba Code:
    Procedure AxeHead;
    Var
      x, y: integer;
    begin
      If FindText (x, y, 'ou need a pickaxe', NPCCHARS, MCX1, MCY1, MCX2, MCY2) Then
        Mouse(x, y, 1, 1, True);
    end;
    And it returns this:
    Compiled successfully in 374 ms.
    So my question is, is it detecting the text if it appears?

  6. #31
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by Mikkoz99 View Post
    Ok so I'm trying the FindText because I am trying to make antirandom for the pickaxe head falling off.
    So I made this procedure (note it's just a test):
    Simba Code:
    Procedure AxeHead;
    begin
      If FindText (x, y, 'ou need a pickaxe', NPCCHARS, MCX1, MCY1, MCX2, MCY2) Then
        Mouse(x, y, 1, 1, True);
    end;
    But it returned this error:

    The x was this one: FindText (x <--
    But then I tried adding Var
    Simba Code:
    Procedure AxeHead;
    Var
      x, y: integer;
    begin
      If FindText (x, y, 'ou need a pickaxe', NPCCHARS, MCX1, MCY1, MCX2, MCY2) Then
        Mouse(x, y, 1, 1, True);
    end;
    And it returns this:

    So my question is, is it detecting the text if it appears?
    Make a new thread instead of posting it on a 4 year old one lol

    Also use BlackChatMessage or something.

    Creds to DannyRS for this wonderful sig!

Page 2 of 2 FirstFirst 12

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. Help with finding text
    By AzulDrake in forum OSR Help
    Replies: 2
    Last Post: 09-26-2008, 02:31 PM
  3. Need Help With finding text!
    By Macrosoft in forum OSR Help
    Replies: 16
    Last Post: 08-13-2007, 08:42 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
  •