Results 1 to 15 of 15

Thread: GetTextAtEx Help.

  1. #1
    Join Date
    Jan 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default GetTextAtEx Help.

    I'm stuck with that function:
    All the examples are working on RS, I just want to detect a normal text\numbers.
    GetTextAtEx(96, 387, 0, ChatChars, False, False, 0, 0, -1, 20, True, tr_NormalChars)

    How can I detect and show (message), a normal text/numbers in a window or a game?
    Is that function can do it?

    Here's something I've lastely tried:
    Code:
    program New;
    var SWFONT: Integer;
    begin
    SWFONT := LoadChars2('C:\Tibia\');
    Writeln (GetTextAtEx(981, 160, 0, SWFont, False, False, 0, 0, 11513775, 3, True, tr_AllChars));
    end.
    The SWFONT is a charset that Janilabo made, and it's supposed to work, but im not sure that it is the problem and I'm not sure if the Textcolor i've picked is correct.

    thanks for helpers..
    Last edited by zippoxer; 06-19-2009 at 09:24 PM.

  2. #2
    Join Date
    Jan 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Please any help...?

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

    Default

    Most likely the coordinates are wrong. You need the coord of the top-left pixel of your char bitmaps otherwise it tends to not work. Also the colour is whatever colour your text is when picked with SCAR's colour picker.

  4. #4
    Join Date
    Jan 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    Most likely the coordinates are wrong. You need the coord of the top-left pixel of your char bitmaps otherwise it tends to not work. Also the colour is whatever colour your text is when picked with SCAR's colour picker.
    Maybe you have any example charset I can use to see if I can at least run this function right?

  5. #5
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    zippoxer, the fonts are usually different for every game, just like my SWFont DOES NOT work in Tibia! It's created from the game I use SCAR for.

    You have to create it yourself (paint or other image editing software is your tool to do it), but if you are very LUCKY, someone might do it for you... As it takes some time to create (testing usually is the worst part of it).

  6. #6
    Join Date
    Jan 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Janilabo View Post
    zippoxer, the fonts are usually different for every game, just like my SWFont DOES NOT work in Tibia! It's created from the game I use SCAR for.

    You have to create it yourself (paint or other image editing software is your tool to do it), but if you are very LUCKY, someone might do it for you... As it takes some time to create (testing usually is the worst part of it).
    I meant if you got any example font for any game, not meant for tibia.
    I see you have SWFONT but I don't know what text of the game it reads.
    The npc's text message or player's messages.

  7. #7
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  8. #8
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Quote Originally Posted by zippoxer View Post
    I meant if you got any example font for any game, not meant for tibia.
    I see you have SWFONT but I don't know what text of the game it reads.
    The npc's text message or player's messages.
    In the game I use it for, it works for any text... As it's used for everything in it (player names, npc names, items, chatbox, friendlist...), I only need to setup the specific coordinates and colors.

  9. #9
    Join Date
    Jan 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Janilabo View Post
    In the game I use it for, it works for any text... As it's used for everything in it (player names, npc names, items, chatbox, friendlist...), I only need to setup the specific coordinates and colors.
    Ok, thanks you very much for the help

    But didn't made it successfully for tibia
    My charset I've made (only numbers - to get the hp bar text) is added as an attachment.

    Please check if I've made it right :\
    Last edited by zippoxer; 06-19-2009 at 10:43 PM.

  10. #10
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    what game is it in?

    ~shut

    EDIT: dont mean to upset you but they are wrong
    they should only be black and white not grey or any other color just black and white

    EDIT: if you tell me what game it is then i will make them for you (i need something to pass the time)
    Last edited by Shuttleu; 06-20-2009 at 05:24 AM.

  11. #11
    Join Date
    Jan 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    what game is it in?

    ~shut

    EDIT: dont mean to upset you but they are wrong
    they should only be black and white not grey or any other color just black and white

    EDIT: if you tell me what game it is then i will make them for you (i need something to pass the time)
    This charset is for Tibia (homepage - http://www.tibia.com | download page - https://secure.tibia.com/account/?su...downloadclient).

    I play this game 6 years so if I will know some basic scar, I will know to do the rest (work with tibia).

    If you can't create this charset, so maybe tell me how?
    Last edited by zippoxer; 06-21-2009 at 04:02 PM.

  12. #12
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    remember, nothing is impossible
    before:

    after:

    charset:
    http://www.mediafire.com/?qwznnwmgydd

    ~shut

    EDIT: use this
    SCAR Code:
    program New;
    var
    chars:integer;
    begin
    chars:=LoadChars2(AppPath + 'Tibia\');
    writeln(Trim(GetTextAtEx(35, 465, 0, chars, false, false, 0, 0, 14671839, 50, true, tr_AllChars)));
    end.

    EDIT: look at the two pictures above and see if you can find out what is so special about all the bits in white
    heres a hint
    look at the color of those points on the normal one with scars color picker
    Last edited by Shuttleu; 06-22-2009 at 07:35 PM.

  13. #13
    Join Date
    Jan 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks! It's working!!! xD
    But I need to create those chars for letter (A, a, B, b...)
    How can I make it black & white?
    Last edited by zippoxer; 06-22-2009 at 08:04 PM.

  14. #14
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by zippoxer View Post
    Thanks! It's working!!! xD
    But I need to create those chars for letter (A, a, B, b...)
    How can I make it black & white?
    any image editing program
    like ms paint, gimp, ps etc.

    put everything to black apart from the bits that are 14671839 which you put to white

    ~shut

    EDIT: let me know if you need any help
    Last edited by Shuttleu; 06-23-2009 at 02:46 PM.

  15. #15
    Join Date
    Jan 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    any image editing program
    like ms paint, gimp, ps etc.

    put everything to black apart from the bits that are 14671839 which you put to white

    ~shut

    EDIT: let me know if you need any help
    Thank you very much for the help xD

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
  •