SRL Archive - RS3 Help

Click on color settings


Thisaintmeyo

2014-09-30 22:31:19

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.

Ross

2014-09-30 23:04:28

From: 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.


What are you trying to do? There may already be a function for it.

Thisaintmeyo

2014-09-30 23:24:06

From: Ross
What are you trying to do?


I am trying to get to the settings tab on any layout so I can proceed with the rest of my script, would mainscreen.findObject work or is there a way to click on a specific color within a tbox.

Ross

2014-09-30 23:30:27

From: Thisaintmeyo
I am trying to get to the settings tab on any layout so I can proceed with the rest of my script, would mainscreen.findObject work or is there a way to click on a specific color within a tbox.


Are you trying to do like an auto-setup-simba thing? Just curious.

You could look for the settings wheel as a DTM maybe?

Thisaintmeyo

2014-09-30 23:34:14

From: Ross
Are you trying to do like an auto-setup-simba thing? Just curious.

You could look for the settings wheel as a DTM maybe?



Yea I am, I figured maybe a DTM would work I just thought it had to be in a specific spot, I also thought I would see if there was another method of clicking on specific colors beforehand. I will try to do that now and see what I come up with, thank you.

Lipcot

2014-10-01 10:30:25

From: 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.



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.