
Originally Posted by
Thisaintmeyo
I was just wondering if there was a way for SMART to use a colorsettings in a box and find a specific color to click on?
I looked and dug and read over many things but never found an option to find a color in a box for smart to then click on, some of that stuff is beyond me for now but I thought I would ask and see if there was even an option or if I had to find a better way to press a button that never seems to be in the same place twice.
Like I was thinking maybe mainscreen.getCenterPoint() would work in the lobby, then set a tbox to find a color but I was having trouble with it, if anything else it would have to find the settings tab that isn't in old school so I thought I would tbox the client to find the settings tab color unless gametabs would find it anyways.
Maybe DTM would find it but I figured it had to be in a specific spot.
I am sorry for all the questions, I wanted to at least try to understand this stuff.
Code:
Lootbox:= inttobox(200, 100, 350, 250);
SmartImage.DrawBox(LootBox);
findColorsSpiralTolerance(x, y, TPA, TarColor, Lootbox, TarTol, colorSetting(2, TarHue, TarSat));
is this what you mean? if you use that, it will search for those colors inside a given Tbox, it can be anywhere in the client(thats just the concept, if you need the code for it ill put it full).
If you dont know where the Tbox will be and you want to generate a Tbox around a given color, you could do sth like: Search color in the whole client, and from the TPA you get, make a Tbox around it. sth like x-20,y-20, x+20, y+20 that would make a small Tbox around the given colour for you to search for other stuff later on.
I couldn“t really understand what you are trying to do though so thats why i told you the two options.