Register forum user name Search FAQ

MUSHclient scripting

Description of MUSHclient world function: world.SetInputFont


Name SetInputFont
Type Method
Summary Sets the font for the input window
Prototype void SetInputFont(BSTR FontName, short PointSize, short Weight, boolean Italic);
Description

Use this to change the command window font. The *entire* window font changes, you cannot change individual lines or words.

Also see SetOutputFont.

The weight can be one of:

(Don't Care) 0
Thin 100
Extralight 200
Light 300
Normal 400
Medium 500
Semibold 600
Bold 700
Extrabold 800
Heavy 900

Italic can be true or false.

VBscript example
world.SetInputFont "Lucida Console", 15, 400, 0
Jscript example
world.SetInputFont("Lucida Console", 15, 400, 0);
PerlScript example
$world->SetInputFont("Lucida Console", 15, 400, 0);
Python example
world.SetInputFont("Lucida Console", 15, 400, 0)
Lua example
SetInputFont("Lucida Console", 15, 400, 0)
Lua notes
The Italic flag is optional, and defaults to false.
Returns Nothing.

See also ...

Function Description
SetOutputFont Sets the font for the output window.

Search for script function

Enter a word or phrase in the box below to narrow the list down to those that match.

The function name, prototype, summary, and description are searched.

Search for:   

Leave blank to show all functions.


Return codes

Many functions return a "code" which indicates the success or otherwise of the function.

You can view a list of the return codes


Function prototypes

The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).

You can view a list of the data types used in function prototypes


View all functions

[Back]

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.