SRL Archive - General Botting Help

Tesseract string help


AzulDrake

2019-04-06 08:43:03

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

Citrus

2019-04-06 10:59:42

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!

bg5

2019-04-11 08:44:19

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.

AzulDrake

2019-04-14 12:09:10

Thanx guys

will try