[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

MUSHclient scripting

Description of MUSHclient world function: world.MoveNotepadWindow


Name MoveNotepadWindow
Type Method
Summary Move and resize the specified notepad window
Prototype long MoveNotepadWindow(BSTR Title, long Left, long Top, long Width, long Height);
Description

This function moves and resizes the specified notepad's window.

Specify the left and top co-ordinates in pixels.

Specify the width and height of the window in pixels.

Note that if you move the window off the screen (eg. to -1000, -1000) it will become invisible.

No checking is performed on the arguments to this function.

The co-ordinates are relative to the client area of the main MUSHclient window.

In other words, position 1, 1 is the very top-left corner of the MUSHclient frame window.

If the notepad window cannot be found, the function returns false (zero).


Note: Available in version 3.54 onwards.


VBscript example
MoveNotepadWindow "my_notepad", 1, 1, 640, 480
Jscript example
MoveNotepadWindow ("my_notepad", 1, 1, 640, 480)
Lua example
MoveNotepadWindow ("my_notepad", 1, 1, 640, 480))
Returns 0: Could not do it (notepad window not found)
1: Moved OK
Introduced in version 3.54

See also ...

Function Description
GetMainWindowPosition Returns the position and size of the main MUSHclient window
GetNotepadList Gets the list of open notepads - returning their titles
GetNotepadWindowPosition Returns the position and size of the specified notepad window
GetWorldWindowPosition Returns the position and size of the current world window
MoveMainWindow Move and resize the main MUSHclient window
MoveWorldWindow Move and resize a world window
NotepadColour Changes the text and background colour of the selected notepad window
NotepadFont Changes the font and style of the selected notepad window
SetToolBarPosition Sets the position of the game toolbars on the screen.

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]

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]