|
dragonisk Newbie
Joined: 15 Jan 2011 Posts: 5
|
Posted: Sat Jan 15, 2011 5:04 pm
capturing colored text |
Hi, I just wanted to know if capturing colored text is possible.. what i mean is:
if i wanted to capture red text like this:
TEST
my client would capture it in a new window
but if it does not match the color: (example)
TEST
'then it just ignores it
I was wondering what i would put in the #if statement in the script. Thanks! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sat Jan 15, 2011 5:16 pm |
If the text appears in multiple colors then i would remove the color option from the trigger so that it can capture any color.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
dragonisk Newbie
Joined: 15 Jan 2011 Posts: 5
|
Posted: Sat Jan 15, 2011 5:18 pm |
no, i think i might have typed it wrong.. what i meant was, how do i make it so that it captures every sentence that's coloured red and if it's not make it ignore the sentence?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Jan 15, 2011 7:44 pm |
You wouldn't put it in any #IF command at all. You would want to use a #TRIGGER, with the ANSI Trigger option checked on. In ZMud, if I remember, you have to explicitly type in the ansi color code because it won't autopaste it in like in CMud.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
dragonisk Newbie
Joined: 15 Jan 2011 Posts: 5
|
Posted: Sun Jan 16, 2011 4:39 am |
thank you! finally figured it out!
|
|
|
|
k.anderson3454 Newbie
Joined: 26 Jan 2011 Posts: 1
|
Posted: Wed Jan 26, 2011 12:35 am |
What is ANSI??
|
|
|
|
Mixsel Wanderer
Joined: 02 Feb 2003 Posts: 99 Location: Seattle, Wa
|
Posted: Sat Feb 12, 2011 8:42 pm |
ANSI is basically the escape Codes use in most muds to determine the color of the Text and Background, some muds go overboard and cause blindness with too much "ansi" in there text.
:) but anyways....
Zmud is tricky capturing ansi, first you have to open the editor window, then choose Raw text, then copy your colored text from the mud window, paste into that window
and then create new trigger in the settings windows, CHECK the ANSI box, then Paste trigger....
it won't work if you don't do everything in a certain order, and yes CMUD is much smarter :)
no guarantees...
Z |
|
_________________ Spin |
|
|
|
|
|