GetCommand
Script function

world.GetCommand

DOC_scripting Read about scripting

Type

Method

Summary

Gets the current command in the command window

Prototype

BSTR GetCommand();

DOC_data_types View list of data type meanings


Description

Returns the current contents of the command window, without changing it.

If more than one window is open for this world, it uses the first window in the window list.



VBscript example

world.Note world.GetCommand



Jscript example

world.Note (world.GetCommand ());



PerlScript example

$world->Note ($world->GetCommand ());



Python example

world.Note (world.GetCommand )



Lua example

Note (GetCommand ())



Return value

The contents of the command window.




See Also ...

Functions

FNC_GetCommandList GetCommandList (Returns some or all commands from the command history)
FNC_PushCommand PushCommand (Pushes the current command into the command history list)
FNC_SelectCommand SelectCommand (Selects (highlights) the current command in the command window)
FNC_SetCommand SetCommand (Sends text to the command window)

(Help topic: function=GetCommand)

DOC_contents Documentation contents page