Home mm2k6 Help Files Commands Miscellaneous Commands
11 | 12 | 2017
Miscellaneous Commands
Article Index
Miscellaneous Commands
Speedwalk
File Commands
All Pages
A variety of commands which somehow escaped the other categories exist for display output, speedwalking, some calcualtions, file input and output, and of course help. 

Display Output

changes cr scrollgrep
showme showmeViaWeb showother
showtoast

Speed Walk Commands

pace speedwalk walkstop

File Commands

dir filedelete
editcurrent spam
textin textout
viewlog
write writegroup

Other

intersection math presubstitute
help version

Changes

Format: /changes {[optional URL]}

Retrieves and displays the current latest changes to mm2k6 if no URL is provided otherwise it retrieves the text at the URL and displays it.

CR

Format: /cr

Sends a carriage return to the mud.

Scrollgrep

Format: /scrollgrep # {search criteria}
Format: /scrollgrep {search criteria}

# can be any number between 0 and 0xFFFFFFFE and is used to limit the number of matches shown.
search criteria can be most regular expression syntax. New to version 4.1 the regular expression parser is based on Perl regular expressions. See the Boost.org regular expression syntax reference for complete details.

Important Note /scrollgrep requires a complete match. This means if you want a partial match use the .* wildcard either before and / or  after the partial pattern you want to match.

. Matches any single character.
[ ] Indicates a character class. Matchs any character inside brackets

example: [abc] matches "a", "b", and "c").

^ If this metacharacter occurs at the start of a character class, it
negates the character class. A negated character class matches any
character except those inside the brackets.

example: [^abc] matches all characters except "a", "b", and "c").

If ^ is at the beginning of the regular expression, it matches the
beginning of the input.

example: ^[abc] only matches input begins with "a", "b", or "c").

- In a character class, indicates a range of characters.

example: [0-9] matches any of the digits "0" through "9").

? Indicates the preceding expression is optional: it matches once or
not at all.

example: [0-9][0-9]? matches "2" and "12").

+ Indicates that the preceding expression matches one or more times

example: [0-9]+ matches "1", "13", "666", and so on).

* Indicates that the preceding expression matches zero or more times.
??, +?, *? Non-greedy versions of ?, +, and *. These match as little as
possible, unlike the greedy versions which match as much as possible.

Example: the input "<abc><def>", <.*?> matches "<abc>" while <.*>
matches "<abc><def>".

( ) Grouping operator. Example: (\d+,)*\d+ matches a list of numbers
separated by commas (such as "1" or "1,23,456").
{ } Indicates a match group. The actual text in the input that matches
the expression inside the braces can be retrieved through the
CAtlREMatchContext object.

\ Escape character: interpret the next character literally.

example: [0-9]+ matches one or more digits, but [0-9]\+ matches
a digit followed by a plus character).

Also used for abbreviations (such as \a for any alphanumeric character;
see table below).

If \ is followed by a number n, it matches the nth match group (starting
from 0).

Example: <{.*?}>.*?</\0> matches "<head>Contents</head>".

$ At the end of a regular expression, this character matches the end of
the input.

Example: [0-9]$ matches a digit at the end of the input.

| Alternation operator: separates two expressions, exactly one of which
matches.

Example, T|the matches "The" or "the").

(?!expression) Negation operator: the expression following ! does not match the input.

Example: q(?!u matches "q" not followed by "u".

Abbreviations
\l Any lowercase alphanumeric character: ([a-z])
\u Any uppercase alphanumeric character: ([A-z])
\s White space (blank): ([ \\t])
\S Non space: ([^ \\t])
\D Any alphabetic character: ([a-zA-Z])
\d Any decimal digit: ([0-9])
\n Newline: (\r|(\r?\n))
\w A simple word: ([a-zA-Z]+)

Showme

Format: /showme {text}

Showme will echo the text to the terminal screen. The text is not sent to the mud.

{text} Text to display.

ShowmeViaWeb

ShowmeViaWeb displays the response of an HTTP request to the web address
supplied. Only web requests are handled. If the address provided doesn't
include the http:// this will be prepended before making the get request.
Data can be sent to the URL by appending it to the URL in the format
http://www.somewebsite.org/?key=value&key2=value2
The web request is sent as a GET if the URL provided is less than
256 characters and as a POST when longer.
The result should be either plain text or text with ANSI text commands.
MM2k6 variables and procedures will be evaluated and replaced before being
displayed.
þ {web address} The website to get the text from.
Example:
/ShowmeViaWeb {http://mm2k6.sourceforge.net/changes.txt}
Format: /ShowmeViaWeb {web address}

ShowmeViaWeb displays the response of an HTTP request to the web address
supplied. Only web requests are handled. If the address provided doesn't
include the http:// this will be prepended before making the get request.

Data can be sent to the URL by appending it to the URL in the format
http://www.somewebsite.org/?key=value&key2=value2
The web request is sent as a GET if the URL provided is less than
256 characters and as a POST when longer.

The result should be either plain text or text with ANSI text commands.
MM2k6 variables and procedures will be evaluated and replaced before being
displayed.

/showmeviaweb  {web address} The website to get the text from.

Example:

/ShowmeViaWeb {http://mm2k6.sourceforge.net/changes.txt}

Note: If this command is used repeatedly before a previous response is complete only the last one will display.

ShowOther

Format: /showother {target session name}{ANSI text}

Just like /showme but in another open session window.
Shows text in another named session window.

Example:

/showother {helpview.mms}{Hello world!!}

or more useful:

/action {^[CLAN] %0} {/showother {helpview.mms}{@ansibold()@foreyellow()[CLAN] @forecyan() $0@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

/showtoast {text to pop up in taskbat notifier}

Similar to /showme or /showother except that a taskbar notification pops like toast above the tray when this command is used. The notification pop up is skinned using a simple bitmap toast.bmp which must be in the same directory as mudmaster.exe before a session started.

If /showtoast is executed while the toast is already up the new text is added to the old text.

If you hover the mouse over the toast it will keep the notification in place.

You can create your own custom skins for the popup. It must be a .bmp and be in the same directory as the mudmaster.exe when a session is opened for it to be used. Pure green RGB(0,ff,0) is treated as transparent. The text is displayed center justified with top margin of 40 pixels and side margins of 15 pixels. Text will not display over transparent portions of the skin.