 |
shaun.murray Magician

Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Wed Sep 19, 2007 1:17 pm
trigger on everything |
Trying to put a timestamp on some of my sub windows. And I know I've asked this before (but I can't find my post... grrrrrr...) It has been a while, but I think it used #psub and regex triggering. Mainly to trigger off of everything. And then using #psub to insert the time. I think... I can't for the life of me get it. TIA! =D
|
|
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Sep 19, 2007 2:27 pm |
Well, depending on how you're capturing for some of your sub windows. I used to have a trigger that did the same thing for my tells - it'd capture it, move it to a child window, and timestamp it so I knew when I received it. The way I accomplished this was the following:
#TRIGGER {%w tells you '*'} {#WIN tells %time %trigger}
That should work, though don't quote me on it. :P Give it a try.
Charneus |
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4813 Location: Pensacola, FL, USA
|
Posted: Wed Sep 19, 2007 2:47 pm |
I just add thi trigger to my child windows:
#TR {^} {#SUB {%time(t)}} |
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Sep 19, 2007 9:04 pm |
I'm really surprised that that works, but work it does. You might need to add a space, though.
|
|
|
|
 |
shaun.murray Magician

Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: Wed Oct 10, 2007 1:40 pm |
YEAH! Works like a champ!
Now... Is there a way to format the color? (Anal, I know... But I like to make it all look the same as much as possible?)
It looks like this now
10:31 AM--You say, 'Test!!'
10:31 AM--Bob tells you, 'Howdy!!'
Be kinda nice to have the timestamp one single color throughout the whole window. Make sense? TIA! |
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Oct 10, 2007 2:47 pm |
Just add %ansi(10) or whatever wherever you want to change colour. You can also add MXP color tags in the #sub command, like:
#trig {^(%w tells you)} {#sub {<color blue>%time(t)"--"%1<color>}}
Or if you want all the stamps the same colour, just
#trig {^} {#sub {<color blue>%time(t)</color>} |
|
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Wed Oct 10, 2007 11:51 pm |
What I use to keep the existing color is
#TRIGGER {(?)} {#PSUB {%time("hh:mm") %1} %x1} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
|
|
|