Results 1 to 5 of 5

Thread: Read text from chat box

  1. #1
    Join Date
    Feb 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Read text from chat box

    Im looking for a way to read text from chat box. I believe I can do that without use of reflection since I only need chat text which I will work with outside client. How I could achieve this using ocr?

  2. #2
    Join Date
    Aug 2017
    Location
    Alberta, CA
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I'm currently at work so I can't go look through aero library but there a lots of functions for reading text, just look through your includes folder

  3. #3
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    C:\Simba\Includes\AeroLib\core\Chat.simba

    Has a list of functions to find text in the chat box.

    Another good include is Text.Simba. This is ideal for finding chat in the textbox that isn't restricted to chat lines etc.

  4. #4
    Join Date
    Feb 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im having trouble trying to make aerolib to run
    Code:
    program new;
    {$i AeroLib/AeroLib.Simba}
    begin
      initAL();
    end.
    Gives error in setupLayer()
    Error: Access violation at line 22
    Execution failed.
    The following bitmaps were not freed: [0, 1]
    Edit: I was using old simba version so updating fixed it. Another error was that it couldnt open libLayer.dll -> use 32 bit simba instead of 64 bit.
    Last edited by eed; 09-05-2017 at 06:33 PM.

  5. #5
    Join Date
    Jul 2017
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    the function for chatbox that I use is the findBlackChatMessage this function is great for breaking loops
    for example
    Code:
    for i:=1 do 3
    //does action in repeat 
    findBlackChatMessage('You cut the tree down') then {final found the words in the chat box so now we
    break loop}
    break;{break loop action}

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
  •