This lets you display a Windows message box and accept a free-format reply (very similar to InputBox in VBscript). The intention is to allow you to display (in a small dialog box) a question and accept a typed response.
The calling sequence is:
result = utils.inputbox ( msg, title, default, font, fontsize )
The only required argument is the message text itself.
- msg = message to display (max 1000 characters)
- title = title of box - if nil, defaults to "MUSHclient" (max 100 characters)
- default = default text - defaults to no text
- font = font to use in response field - defaults to standard Windows font
- fontsize = size of font to use (ignored if no font supplied)
Return value = what they typed, or nil if cancelled
Example:
print (utils.inputbox ("What is your name?", "Query", "Nick", "Courier", 9)) --> Peter
There is also similar function which will handle a larger response: utils.editbox