world.GetWorldWindowPositionX

MUSHclient script function (Method) — introduced in version 3.66

Returns the position and size of a specific world window

Prototype

BSTR GetWorldWindowPositionX(short Which);

Data type meanings

Description

This function returns the size of one of the current world's window, in pixels.

For normal scripting languages these return a string, like this: "0,0,669,479".

The first window is window number 1, the second one is 2, and so on. You create new windows by using Window menu -> New Window.

VBscript example

Note GetWorldWindowPositionX (2)

Jscript example

Note (GetWorldWindowPositionX (2))

Lua example

Not available in Lua - use GetWorldWindowPosition with a window number argument instead.

Lua notes

Lua has an optional argument to GetWorldWindowPosition which is the window number to get.

Return value

Returns a string in the form:

left,top,width,height

eg. "0,0,669,479"

Related topic

Information

See also

FunctionDescription
GetMainWindowPositionReturns the position and size of the main MUSHclient window
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
MoveNotepadWindowMove and resize the specified notepad window
MoveWorldWindowMove and resize a world window
MoveWorldWindowXMove and resize a specific world window