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