Results 1 to 7 of 7

Thread: How to find chatbox text.

  1. #1
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Question How to find chatbox text.

    I have a repeat until loop where I want to repeatedly click until it finds a chatbox text.
    I have used this IsChatBoxTextAnyLine like this:
    Simba Code:
    until IsChatBoxTextAnyLine(', you may only use', 0);

    I think it didnt find because of the color. and I dont know what to put in color. the text is the normal black should I pick the color with the pickcolortool? What if it needs tolerance? There's no option for tolerance?

    could anybody help me to find the text?

  2. #2
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    i think you should try it with the col from color picking tool. also chat box text is static, so no need for tolerance

  3. #3
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    SRL constants:
    clMessage = clBlack = 0 so you are doing it right.
    Probably didn't find because the text doesn't match.
    Try GetChatBoxText/ChatBoxTextArray to see what text it returns.

  4. #4
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    well I want my script to stop when this message comes up:










    and I have tried GetChatBoxText but it just successfully executes without returning the text.


    I have this so far:


    Simba Code:
    MakeCompass(47);
      SetAngle(1);
      //ToggleXPPopUp(True);
      MMouse(292, 71, 5, 5);
      if IsUpText('-at Ta') then
      repeat
      ClickMouse2(true);
      Wait(RandomRange(30, 50));
      until IsChatBoxTextAnyLine('you may only use', 0);

    but the script doesnt stop




    Any Help???
    Last edited by Sax; 11-17-2012 at 06:12 PM.

  5. #5
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    make a DTM of a unique part of the text then search the mainscreen for that DTM. something like

    if find dtm then
    terminatescript;

    hope that helps, on phone atm

  6. #6
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    That's not the chatbox, its npc try FindNPCChatText

  7. #7
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    Yeah thats it.
    I'll do it when I get to pc thanks

    Edit: I have this now:
    Simba Code:
    repeat
      ClickMouse2(true);
      Wait(RandomRange(30, 50));
      until FindNPCChatText('you may only', Nothing)

    But the loop doesnt stop

    any hint??
    Last edited by Sax; 11-18-2012 at 01:51 PM.

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
  •