|
koga Beginner
Joined: 08 Jul 2006 Posts: 17
|
Posted: Tue Sep 12, 2006 1:33 pm
setting a script to log |
is there anyway to set up a script that will start a log whenever a certain word appears? and if so, can anyone help me with it please?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Sep 13, 2006 12:01 am |
#LOG "path and name of logfile"
If you want to stop logging on another word, I believe #LOG without parameters turns off logging. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
koga Beginner
Joined: 08 Jul 2006 Posts: 17
|
Posted: Wed Sep 13, 2006 1:13 am |
so, if I were to type #LOG test for example, whenever the word "test" showed up in the window it would start a log?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Sep 13, 2006 2:16 am |
No, that would be #TRIGGER. #LOG would just set up the file you specified and start logging to it.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Sep 13, 2006 10:46 am |
Topic moved to General Discussion.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
koga Beginner
Joined: 08 Jul 2006 Posts: 17
|
Posted: Thu Sep 14, 2006 7:31 pm |
so, how would I set up a way for it to log? #TRIGGER {#LOG <phrase to start logging>} ?
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Sep 14, 2006 8:39 pm |
#trigger {<phrase to start logging>} {#LOG <name of file to log to>}
You should also know that since you triggers are so powerful, your phrase to log can be a regular expression patterns. |
|
_________________ Asati di tempari! |
|
|
|
koga Beginner
Joined: 08 Jul 2006 Posts: 17
|
Posted: Thu Sep 14, 2006 10:05 pm |
ok, thanks, it seems to work
|
|
|
|
|
|