|
KurtDH Beginner
Joined: 14 Sep 2004 Posts: 17
|
Posted: Mon Nov 08, 2004 12:07 am
time question |
I'm capturing yells to a window.
In the capture window with the yells, I want to append the time the yell happened, right next to the yell.
I want to use %time(c)
I can extract the time the yell happened using the time function, and send that to a variable. But how do I get the variable to prepend itself right before the yell in the capture window? |
|
|
|
Curlay Beginner
Joined: 17 May 2004 Posts: 27 Location: USA
|
Posted: Mon Nov 08, 2004 12:44 am |
Do you NEED it to prepend itself before the yell?
If it's ok to have it come after the yell, then in the same trigger that you #cap, try:
#window {WINDOWNAME} {%time( c)}
Where WINDOWNAME is, obviously, the windowname. That's what I use, let me know if you have any advice on how to make it more efficient or if this isn't what you were seeking!
Curlay |
|
|
|
KurtDH Beginner
Joined: 14 Sep 2004 Posts: 17
|
Posted: Mon Nov 08, 2004 12:48 am |
Is it possible to put it on the same line as the yell? And not have it create a new line in the window after the yell?
Curlay wrote: |
Do you NEED it to prepend itself before the yell?
If it's ok to have it come after the yell, then in the same trigger that you #cap, try:
#window {WINDOWNAME} {%time( c)}
Where WINDOWNAME is, obviously, the windowname. That's what I use, let me know if you have any advice on how to make it more efficient or if this isn't what you were seeking!
Curlay |
|
|
|
|
Curlay Beginner
Joined: 17 May 2004 Posts: 27 Location: USA
|
Posted: Mon Nov 08, 2004 1:04 am |
Heh, well, I'm not even sure if this would work, but if there's any way to work such a command:
#window {tells} {%time( c) #cap tells}
(That brings a syntax error, so it obviously won't work, but you can see where I'm trying to go.) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Nov 08, 2004 2:06 am |
You could use
#WINDOW yells {%time("c") %line}
However you will lose all coloring in that line.
Next solution is to have a trigger in your yells window actually #SUBSTITUTE in the %time. Since all text going to this window should have a similar format it is easy enough to recolor during that #SUB. Remember to save a seperate setting for that child window to make the trigger automatically recreated. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|