Results 1 to 5 of 5

Thread: How can I get text from friendlist playernames?

  1. #1
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default How can I get text from friendlist playernames?

    I have been trying to get text from friendlist's playernames by using command GetTextAtEx, But it doesn't seem working. i think I did something wrong . Can someone show me how to get the text from there?

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

    Default

    It's most likely a font issue.

    You have to know which font is used in the friends tab before you can search for text there.

    Unfortunately I don't know which font it is, and I'm not that good with fonts in the first place so I probably couldn't figure out a workaround.

  3. #3
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried smallchars, statschars etc, didn't work, But I figured out whats the other way, I think that Bitmaps is more accurated too. I'm using bitmap to find name.
    I'm making function::: If your autoer account gets text by privatemessage from your other account, it will send text to your other player and tells exaple what is yours autoer doing or how many bank runs autoer account has made etc...
    Function is like this:
    function Answer(FromCommand,WithCommand,ToPlayer:string):bo olean;

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    I have created one inside RC. Main problem is: you need to experiment with the fontbase pixel (562,233).
    PHP Code:
    {*******************************************************************************
    function 
    RCFindFriendString;
    byWT-Fakawi
    Description
    Returns the name of the First Friend in the FriendList
    *******************************************************************************}
    function 
    RCFindFriend:string;
    begin
      Result 
    := lowercase(trim(GetTextAtEx(56223345SmallCharsTrueFalse021677721520Falsetr_NormalChars)));
    end

    Check out RC (Remote Control). Its all covered in there .....
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok Thanks for helping! But... i got it already work with bitmaps.

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. friendlist chars
    By Shuttleu in forum Research & Development Lounge
    Replies: 2
    Last Post: 06-02-2008, 03:52 PM
  3. friendlist bitmap mask
    By Shuttleu in forum OSR Help
    Replies: 3
    Last Post: 06-01-2008, 01:28 PM
  4. Getting text from text window?
    By Gone Fishing in forum OSR Help
    Replies: 8
    Last Post: 04-24-2008, 07:33 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
  •