Results 1 to 6 of 6

Thread: Click on color settings

  1. #1
    Join Date
    Sep 2014
    Posts
    31
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Default Click on color settings

    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.
    Last edited by Thisaintmeyo; 10-01-2014 at 02:39 AM.

  2. #2
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Thisaintmeyo View Post
    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.

  3. #3
    Join Date
    Sep 2014
    Posts
    31
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by Ross View Post
    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.

  4. #4
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Thisaintmeyo View Post
    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?

  5. #5
    Join Date
    Sep 2014
    Posts
    31
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by Ross View Post
    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.

  6. #6
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    Quote Originally Posted by Thisaintmeyo View Post
    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.

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
  •