Results 1 to 6 of 6

Thread: Help Detecting Text

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

    Default Help Detecting Text

    Hi,

    Just some background information: I am not new to scripting. I just only used to use a few functions before. Now I am trying to expand my repertoire.

    This isn't really for runescape... so I included a screen shot of the kind of text I need help "detecting." I was thinking detecting text because I couldn't figure out any other way to solve this problem. Basically, the user just sees a 1/4 of the screen text box (like notepad) at the bottom left side of the screen. Lots of text appears there and it is all the same color. So a bitmap would not work and I don't think just detecting the color black would help much either. Because then if someone messages me... my script will think I was disconnected.

    This function is also important, because the game servers go offline randomly almost once a day for 10 minutes or so at a time. I need to be able to detect this while I am sleeping and tell the script to exit FireFox/Internet Explore and wait it out at the desktop for a little bit.



    I'm basicly looking for the following:

    SCAR Code:
    if DetectText('disconnected') then
      begin
        TerminateScript;
        // one or the other... Haven't decided yet
        MoveMouseSmooth(x,y);
        Wait(250+Random(100));
        ClickMouse(x,y,True);
        Wait(35+Random(10));
        ClickMouse(x,y,True);
        Wait(600000);  // Equivalent of 10minutes in milliseconds
        goto LblBEGINNING;
      end;

    So, I really need to know how to detect all kinds of text. That would be helpful. Also, a mini-explanation/tutorial would be helpful, because I also want to be able to detect text in other situations. Thank you.
    JavaIRC: SuperMan

  2. #2
    Join Date
    Apr 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I just found the following:

    SCAR Code:
    If IsUpTextMulti('Disconnected','isconnected','isconnect') Then

    But I heard DTM's are the best for this... Can someone help me get started on DTM's?
    JavaIRC: SuperMan

  3. #3
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Look in tutorial island. I'm sure you'll find what you are looking for. Much better than what we can explain to you in a simple post.

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

    Default

    Quote Originally Posted by Illkillutill View Post
    Look in tutorial island. I'm sure you'll find what you are looking for. Much better than what we can explain to you in a simple post.
    Can you send me the link to a good tutorial? I've search for an hour. I keep getting bad ones.
    JavaIRC: SuperMan

  5. #5
    Join Date
    Jul 2007
    Location
    Ohio
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here is a good tut on dtms, i think that is what you said you wanted??
    http://www.villavu.com/forum/showthread.php?t=564

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

    Default

    Quote Originally Posted by king of the nites View Post
    Here is a good tut on dtms, i think that is what you said you wanted??
    http://www.villavu.com/forum/showthread.php?t=564
    Yes, wow I can't believe I couldn't find that one. Thank you. It mostly makes sense. We'll see if I can put it to use tomorrow. It's late.

    Thank you for the help.
    JavaIRC: SuperMan

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Grabbing or reading Text from a game text box
    By British in forum OSR Help
    Replies: 16
    Last Post: 02-27-2009, 08:02 AM
  2. Detecting mine...
    By Drakan in forum OSR Help
    Replies: 12
    Last Post: 05-14-2008, 01:04 AM
  3. Detecting if F(1-12) is Down in Delphi
    By ShowerThoughts in forum Delphi/FPC Help and Tutorials
    Replies: 1
    Last Post: 03-21-2008, 05:23 AM
  4. Detecting Websites
    By Diabloizzle in forum C#/Visual Basic Help and Tutorials
    Replies: 10
    Last Post: 10-14-2007, 04:58 AM

Posting Permissions

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