SRL Archive - General

Any good Color detection tools in C++?


lollol012

2015-01-28 17:50:41

Hey there.

Throughout my scripting "history" with Simba, I found it has some real useful resources. I talk specifically about color detection stuff like "FindColor(SpiralTolerance)", etc.

I haven't been playing Runescape for a long time, but I would still have use for such great stuff.

Does anybody know if there are similar resources in C++, OR if it is possible to use Simba (SRL) to interact with an unrelated window and still have the non-runescape-specific methods work with it?

KeepBotting

2015-01-28 18:10:08

It's completely possible to have Simba interact with any window. Its uses aren't limited to RuneScape.

You can check out the documentation for Simba's "core" functions that the SRL includes are based off of - be prepared to use these in creating routines for your own use.

Brandon

2015-01-28 18:41:29

Simba can work with any window and you don't have to use RS specific methods. Just use the core API's.

As for libraries in C++.. I'd avoid anything that isn't OpenCV.. If you really want to stray away from Simba then..


OpenCV is the best! "but" @Dgby714; and myself, also wrote a CMML project a while back..

https://github.com/JohnPeel/CMML - Original project by Dgby. Not sure if his git is updated though.
https://github.com/Brandon-T/CMML/blob/master/include/bitmap.h



It's actually really easy to use and since it's C, it will work in C++. Cross-platform too. Just write a wrapper for it so that it frees stuff in the destructor. That way you won't have to free anything..

The reason there is bitmap_from_24bit_string and bitmap_from_32bit_string was to support the alpha channel and still be compatible with Simba's bitmap strings.


Otherwise, just stick with Simba.