Results 1 to 8 of 8

Thread: IsUpText.

  1. #1
    Join Date
    Mar 2007
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default IsUpText.

    Ok well im having trouble clicking the right stuff.

    In my script im using FindColorTolerance(...), seems to work well.

    Although my script keeps finding different things, than i want, so i added IsUpText(...).

    I thought this may solve the problem, but it didnt.

    Qeustion 1: When Using IsUpText do u add the White Text, or The Teal Text.

    Heres Some pics of what i mean...



    Qeustion 2: Does IsUpText(...) Mean It Waits till it sees the stuff in the upper left hand corner before clicking.?


    Someone: 'Who the hell is TooManySitUps?'

    Boreas: 'Switch the first and last letter of my name, what do you get?'

    Someone: 'Um, SoreAb?'

    Boreas: 'And how do you get that?'

    Someone: 'From Too Many Sit Ups!! Haha, Boreas you are so clever!'

    Boreas: 'Ya he's like my evil twin that takes over when I'm being really sarcastic, or playing devil's advocate.'

  2. #2
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Question 2: I believe yes.

    Q1, look at scripts that open doors already, will help you alot. i.e. Goblin scheduler, etc.

  3. #3
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    or just use FindObj...it looks for your color and the isuptext, and its the white text,...not the item or object
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  4. #4
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Question 2: No, it just returns true if your specified text is up there when you call on it.
    I believe, by looking at the function, that it will find almost any color.

  5. #5
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I had a slight problem with colored text, mine was with banking and wanting to click on the ank banker which half was teal. I solved this by creating a simple little bitmap and use it to find it. Nice simple and clean, maybe you should do that?

  6. #6
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    It shouldn't matter what color the text is.
    also you might want to do "IsUpTextMulti" to search for multiple texts.


  7. #7
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Ive gone and looked at fakwis goblin, he uses a bitmap to find the door, then uptext as failsafe. He only uses IsUpText(Ope) or IsUpText(pen) im sure that the teal color causes trouble.

  8. #8
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Meh, IsUpText needs updating, and findobj only really works on SRL 3.6, you have to change FindMSColor in SRL 3.7 (it uses MM coords lol)



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IsUpText Help
    By Electron Man in forum OSR Help
    Replies: 4
    Last Post: 11-15-2007, 11:03 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
  •