Results 1 to 4 of 4

Thread: FindChatboxChat

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindChatboxChat

    Hey guys, Which color do I use when trying to find a PM in the chatbox? Since this function was written, the ability to change text color was added, so I'm not sure if clfriend will still work.
    Thanks in advance,
    Footy
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    Quote Originally Posted by Footy View Post
    Hey guys, Which color do I use when trying to find a PM in the chatbox? Since this function was written, the ability to change text color was added, so I'm not sure if clfriend will still work.
    Thanks in advance,
    Footy
    I just grab whatever color I want to check for, for example for urns I use this:

    Simba Code:
    Function FindRedChatMessage(ChatMsg: string): Boolean;
    Begin
      Result := (Pos(ChatMsg, GetChatBoxText(7, 127)) > 0);
      If Not Result Then
        Result := (Pos(ChatMsg, GetChatBoxText(8, 127)) > 0);
    End;

    127 is the color I got from using the color picker

  3. #3
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, I'll try that. Thanks!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    You can change private chat to black. Then you can / to the private chat window and use FindBlackChatMessage.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

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
  •