Results 1 to 7 of 7

Thread: Clicking text from npc talk

  1. #1
    Join Date
    Jun 2006
    Posts
    366
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Clicking text from npc talk

    I am making an auto monk fighter wid auto healer... After it talks with the monk, it just keeps on going back and clicking talk. What command should I use to make it click in the thing on for example I am injured part.. Atm I am not at home so cant post the code I am using to click on the i am injured part..

    If you dunno wht i am talking abt here is a simple version. I am talking wid romeo.. I want my autoer to click on click here to continue. What is the command to click on it..

    help would be appreciated

  2. #2
    Join Date
    Sep 2006
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I didn't test this function, but it should work :

    SCAR Code:
    {*******************************************************************************
    function ClickText(Text: String; x1, y1, x2, y2: Integer): Boolean;
    By:
    Description: Searches for text in specified area if text is found then it
                 clicks it
    *******************************************************************************}

    function ClickText(Text: String; x1, y1, x2, y2: Integer): Boolean;
    var
      x, y: Integer;
    begin
      if (IsTextInAreaEx(x1, y1, x2, y2, x, y, Text, 100, UpChars,
        True, True, 0, 1, -1)) then
      begin
        Result := True;
        Mouse(x + ((Length(Text) div 2) * 6), y + 3, 2, 3, True);
      end;
    end;

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

    Default

    Try this :

    SCAR Code:
    ClickToContinue;



    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)

  4. #4
    Join Date
    Sep 2006
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I will normally tell that but :

    What command should I use to make it click in the thing on for example I am injured part.. Atm I am not at home so cant post the code I am using to click on the i am injured part..

  5. #5
    Join Date
    Feb 2006
    Posts
    406
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    function ClickNpcChatText(txt: String): Boolean;

  6. #6
    Join Date
    Jun 2006
    Posts
    366
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok i'll try them both once my player reaches the monks...In lumby now because of pkin.. Ok i used masquerander's way.. its pretty good..only prob is that if it gets lag or goes too slow it just skips the function.. Any way to stop tht?

  7. #7
    Join Date
    Jun 2006
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by da_professa View Post
    ok i'll try them both once my player reaches the monks...In lumby now because of pkin.. Ok i used masquerander's way.. its pretty good..only prob is that if it gets lag or goes too slow it just skips the function.. Any way to stop tht?
    Add a few wait(5000+random(2500))
    Every time you macro, you kill a bunny...

    Kill all of the bunnies

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. clicking npc text help
    By The Claw in forum OSR Help
    Replies: 3
    Last Post: 05-19-2007, 09:15 AM
  3. Talk anyone? :]
    By ShawnjohnSJ in forum News and General
    Replies: 2
    Last Post: 05-05-2007, 03:53 AM
  4. Clicking Skill up text in MC window
    By Bramble in forum OSR Help
    Replies: 2
    Last Post: 12-05-2006, 04:49 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
  •