Results 1 to 4 of 4

Thread: Tesseract string help

  1. #1
    Join Date
    Aug 2008
    Location
    Serdia, Isla Prima
    Posts
    68
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Tesseract string help

    Hi all,

    I'm currently using Simba to macro in a game called Eternal Lands. As the fonts don't match RS fonts, I'm using tesseract to find strings in chat window. I have used the tool Olly made and it can recognize the text in the chat window. What I need help with is to now search through the tesseract string for specific word, and do action if the word is found.

    Currently I have setup the coordinates for tesseract to monitor 2 lines in the chat window. If i use WriteLn() to write the string captured by tesseractGetText, it displays the 2 lines of text correctly. What funtion fould I use on the string to check if a certain word is present?

    Regards

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Here are the docs for Simba's string functions: http://docs.villavu.com/simba/scriptref/string.html
    I'd recommend playing around with those to learn how they work.
    You can also check out SRL's string functions and public scripts for more concrete examples.
    Good luck!

  3. #3
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    From what I understood you just want to find word in the string ?

    There are functions Pos() or PosEx().
    If they find the word in the string they return it's position, if they don't find it they return 0.

  4. #4
    Join Date
    Aug 2008
    Location
    Serdia, Isla Prima
    Posts
    68
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanx guys

    will try

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
  •