27 | 05 | 2018
Build 28

Great new possibilities are opening up with the start of features which allow better control and interaction between multiple simultaneous session windows.

There is a ways to go on this front but we have to start somewhere.

Bugs fixed:

  • Chat connection process now handles the version information it receives properly.
  • Chat call process now notices unresponsive calls to non-existant addresses and closes the connection.
  • Script entity tree view no longer includes empty nodes.

New Features:

Several new commands  and features w ere implemented to enable multiple se ssions windows to be open simultaneously and to allow them to interact. 
  • Session window size and position are now saved when the session is saved.
  • New /window command to allow sending commands to any open session window.
  • New /loadsession com mand to allow opening of sessions from script or input line
  •  New /maxrestore command to togg le a session window between maximized within the main mm2k6 frame or restored to part of the screen.
  • Session options dialog has 2 new options: Max Width and Max Height which can be saved in the session as well. These allow the docking of the sides (Max Width) or the top and bottom (Max Height) of the session windows to the corresponding edges of the main mm2k6 frame.
  • Script entity tree view has been improved and now allows you to execute aliases with a right click.
  • Right click menu of the input line has a find script option. This opens a tree view of aliases which allows right click execution.

  

New Command Help

Window

Format: /window {target session name}{mm2k6 commands}

Sends mm2k6 commands to the targeted session. The session name is the one normally seen on the associated title bar and includes the .mms extension. The mm2k6 commands can be any script commands.

Example:
/action {^[CLAN] %0} {/window {helpview.mms}{/showme {@ansibold()@foreyellow()[CLAN] @forecyan() @replace($0,},@chr(125)) @ansireset()}}} {channels}
sets up an action that captures any text on lines starting with [CLAN] and shows it in cyan after a yellow [CLAN] in a window called helpview.mms

 

Special window sub-commands:

/window {target session name}{removecaption}
/window {target session name}{addcaption}
These add and remove the session title bar and thick frames. The title bar and thick frame are usually needed when you are moving and resizing a session window into the desired configuration. Once the size and position are set removing them leaves you with much more screen area to work with.

 

Here is an example of two open session windows with thick borders and title bars showing.

Then I entered /window {Ghoti.mms}{removecaption} and /window {helpview.mms}{removecaption} and got this.

Loadsession

Format: /loadsession {path and filename of session file}

This command allows any script to open another session. Most likely this is something that would be done in the start up script of the main session but is not limited to that. Sessions that are opened do not have to connect to any mud but can be used to display messages or log channels.

Example: In a start up script you could have:

/autoexec {/loadsession {C:\Program Files\MyMudMaster\sessionFiles\helpview.mms}}
If you have already saved that session with its position set appropriately and with its Max Width=1 (checked Max Width in Options, session options) then you'll likely also want to execute /window {helpview.mms}{removecaption} as well.

 

Window removecaption sub command

Format: /window {session name including .mms}{removecaption}

This command allows any script in anny session to remove the thick borders of any session window.

Example:

In a start up script you could have:

/autoexec {/window {helpview.mms}{removecaption}}
If you have already open that session via script the same script would likely also /window {helpview.mms}{removecaption} as well to remove the title bar and thick borders.

 

MaxRestore

Format: /maxrestore

Toggles the current session between maximized within the Mud Master frame and restored to the last size and position within the child window area of the main frame.