|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Tue May 28, 2002 6:11 am
need help with #win command |
am trying to figure out if it is possible to remove text lines from a window using the #win command in a trigger...... i know i can add text to a window using #win *window name* *text* but how can i remove that same text using a trigger?
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue May 28, 2002 6:29 am |
Have a look into the command #GAG
TonDiening
Beta Upgrading to 6.26 |
|
|
|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Tue May 28, 2002 6:32 am |
ok here is what i am trying to do... i am sending text from the mud into a seperate window that only records what i want it to record.... i have that down just fine.... what i am wanting to do now is to delete a specific line of text from the secondary window when a trigger is executed...... hope that makes sense
thanks!
Kevin W. Steele |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue May 28, 2002 2:00 pm |
To prevent text from appearing in a secondary window:
1. Don't send it there, or
2. Use a #GAG trigger in the secondary window
In other words, do what Ton suggested.
LightBulb
Vague questions get vague answers |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue May 28, 2002 9:48 pm |
quote:
To prevent text from appearing in a secondary window:
1. Don't send it there, or
2. Use a #GAG trigger in the secondary window
In other words, do what Ton suggested.
LightBulb
Vague questions get vague answers
As far as I know, you can't delete lines ALREADY sent and shown in a window (you cannot delete, say, the login prompts after 10 minutes of playing). Therefore, if you didn't initially gag them and they are not part of a specific multiline combo there's only one way to do it--using a nanny variable to keep track of everything sent and then deal with each thing as needed. Once dealt with, you'd need to use #CLR to destroy the old output and reshow the entire variable.
li'l shmoe of Dragon's Gate MUD |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue May 28, 2002 10:20 pm |
Unless you need specfic trigger, macro or button functionality in your child window; you may wish to consider using the status window. It allows things to very easily be displayed and is updated everytime a variable changes.
|
|
|
|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Tue May 28, 2002 10:52 pm |
no i dont need anything other than text to be in the wondow....
where would i find help gile on using the status window in zmud 6.16 help file? i think i can figure out out from there
thanks! |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue May 28, 2002 10:59 pm |
Look up the command for putting info in the window. That being STW. The caveat is you can only have 1 status window.
|
|
|
|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Tue May 28, 2002 11:08 pm |
thats all i need THANKS! all of you who helped me out
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed May 29, 2002 3:09 am |
quote: As far as I know, you can't delete lines ALREADY sent and shown in a window (you cannot delete, say, the login prompts after 10 minutes of playing).
Actually, you can. See the #GAG command (as Ton suggested).
The numeric argument to the GAG command specifies the number of lines to GAG. If the number is omitted, a single line is gagged. If the number is negative, the indicated number of lines prior to the current trigger line are gagged.
If you want to delete the last 10 lines (including the current one) the command is:
#GAG 10
If you want to delete the 10 lines before the current line it's:
#GAG -10
If the login prompts are still in your scrollback after 10 minutes of playing, you can remove them.
LightBulb
Vague questions get vague answers |
|
|
|
|
|