Results 1 to 2 of 2

Thread: can't find uptext based on color

  1. #1
    Join Date
    Apr 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default can't find uptext based on color

    My program is a woodcutter/firemaker, it uses colors and findobj. I wan the user to be able to enter the type of tree they want to cut and then it will check the blue text that appears next to 'chop' in the top left and see if its the right tree so they don't cut reg trees if they want to cut oaks. I tried using GetUpTextColor, but it doesn't work well unless I get a fresh color everytime, I don't want this to be a program where you have to enter colors. Would there be simpler way to do this?

    BTW: I have the tolerance in GetUpTextColor to 80.

    thnx for responses

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    GetUpTextColor only returns the colour of the UpText, but not the text.

    To get the text, use:

    SCAR Code:
    Rs_GetUpText

    It's hard-coded in SCAR and owns
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mime Solver [color based]
    By Iroki in forum Research & Development Lounge
    Replies: 11
    Last Post: 01-18-2009, 12:56 PM
  2. SolvePete[First Color Based Solver]
    By Iroki in forum Research & Development Lounge
    Replies: 19
    Last Post: 01-09-2009, 04:48 PM
  3. function FightNPCFindMob(Color:TintegerArray; tol: integer;Uptext:TStringArray): int
    By Lee Lok Hin in forum Research & Development Lounge
    Replies: 1
    Last Post: 04-15-2008, 12:02 AM
  4. Finding Color and UpText
    By I Pick Axes in forum OSR Help
    Replies: 12
    Last Post: 10-16-2006, 09:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •