SRL Archive - OSR Help

FindChatboxChat


Footy

2012-09-19 15:50:04

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

Ashaman88

2012-09-19 15:51:54

From: Footy
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:

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

Footy

2012-09-19 15:53:19

Alright, I'll try that. Thanks!

KeepBotting

2012-09-20 20:51:05

You can change private chat to black. Then you can / to the private chat window and use FindBlackChatMessage.