world.GetWorldWindowPositionX
Returns the position and size of a specific world window
Prototype
BSTR GetWorldWindowPositionX(short Which);
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
See also
| Function | Description |
|---|---|
| GetMainWindowPosition | Returns the position and size of the main MUSHclient 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 |
| MoveNotepadWindow | Move and resize the specified notepad window |
| MoveWorldWindow | Move and resize a world window |
| MoveWorldWindowX | Move and resize a specific world window |