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

MoveNotepadWindow

Script function

world.MoveNotepadWindow

Read about scripting

Type

Method

Summary

Move and resize the specified notepad window

Prototype

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

View list of 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).


Available in MUSHclient 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))


Return value

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


See Also ...

Topic

Notepad

Functions

(ActivateNotepad) Activates a notepad window
(AppendToNotepad) Appends text to a notepad window
(CloseNotepad) Closes a notepad window
(GetMainWindowPosition) Returns the position and size of the main MUSHclient window
(GetNotepadLength) Gets the length of the text in a notepad window
(GetNotepadList) Gets the list of open notepads - returning their titles
(GetNotepadText) Gets the text from a notepad window
(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
(NotepadReadOnly) Make a selected notepad window read-only
(NotepadSaveMethod) Changes the save method for this notepad window
(ReplaceNotepad) Replaces text in a notepad window
(SaveNotepad) Saves a notepad window to disk
(SendToNotepad) Creates a notepad and sends text to it
(SetToolBarPosition) Sets the position of the game toolbars on the screen.

(Help topic: function=MoveNotepadWindow)

Documentation contents page


Search ...

Enter a search string to find matching documentation.

Search for:   

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]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]