 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Fri May 16, 2008 7:41 pm
Request: additional parameter for #TYPE |
I would like for the #TYPE to have it 1 additional optional parameter - name of the output window
#TYPE filenum pattern window
because to show some text from a file in a child window, currently you have either put entire (#FILE-#TYPE-#CLOSE) sequence in a setting withing child window or enclose it (sequence) with #EXECWIN. The
problem is that you can access opened file only from window that issued the #FILE command and can't redirect #TYPE output on the fly. So the following syntax will not work:
#FILE ....
:child: #TYPE ...
#CLOSE ...
#FILE ...
#EXECWIN child {#TYPE ...}
#CLOSE
You must use #EXECWIN child {#FILE ....;#TYPE ...;#CLOSE ...} while the only 1 additional parameter to the #TYPE command could easily solve the problem and add some flexibility to scripting. |
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Tue May 20, 2008 9:40 pm |
Now I can see from where the problem with #TYPE and child windows is come from. It looks like CMUD allows to have 10 opened files per window. Not per session or package, but per window, including child windows. I wonder why it was not mentioned in help. (or it is a bug?)
| Code: |
for "TestSession" session:
=================
#FILE 1 Test1.txt
:Child: #FILE 1 "TestSession\Test2.txt"
#CLOSE 1
:Child: #CLOSE 1
Main window output:
=============
Opened Test1.txt as file 1
Closed X:\Program Files\CMUD\TestSession\Test1.txt on file 1
Child window output:
=============
Opened Test2.txt as file 1
Closed X:\Program Files\CMUD\TestSession\Test2.txt on file 1
|
Nevertheless, it does not affect my original request. The #TYPE command right now is just not flexible enough.
UPDATE: sorry, I've fixed wrong filename in output text.  |
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Fri May 30, 2008 1:28 pm |
Bump
|
|
_________________ My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads |
|
|
 |
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: Sat May 31, 2008 1:31 pm |
Would be nice, but going to be low priority unless a bunch of people come out and say they would use it.
|
|
|
|
 |
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Sat May 31, 2008 7:48 pm |
From one side, it definitely will have low priority. From other side, I don't think it'll take too much time to add an extra parameter, and different window handling already polished in #SAY and :window: commands.
Anyway, I just wanted to bump this thread because Zugg had not read it.
Btw, Dumas, your vote for this request already have increase chances it will be implemented.  |
|
|
|
 |
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: Sun Jun 01, 2008 3:15 am |
Yeah, but unfortunately my scripting attempts ended before CMUD was even released. I focus most of my mudding attention on mapping.
|
|
|
|
 |
|
|
|