world.MoveNotepadWindow

MUSHclient script function (Method) — introduced in version 3.54

Move and resize the specified notepad window

Prototype

long MoveNotepadWindow(BSTR Title, long Left, long Top, long Width, long Height);

Data type meanings

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).

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))

Return value

0: Could not do it (notepad window not found)
1: Moved OK

Related topic

Notepad

See also

FunctionDescription
GetMainWindowPositionReturns the position and size of the main MUSHclient window
GetNotepadListGets the list of open notepads - returning their titles
GetNotepadWindowPositionReturns the position and size of the specified notepad window
GetWorldWindowPositionReturns the position and size of the current world window
MoveMainWindowMove and resize the main MUSHclient window
MoveWorldWindowMove and resize a world window
NotepadColourChanges the text and background colour of the selected notepad window
NotepadFontChanges the font and style of the selected notepad window
SetToolBarPositionSets the position of the game toolbars on the screen.