simCmd Plugin API reference

API functions for the Commander plugin.

simCmd.clearHistory
simCmd.setSelectedScript
simCmd.setVisible

simCmd.clearHistory

Description Clear command history
Lua synopsis simCmd.clearHistory()
Lua parameters -
Lua return values -
Python synopsis simCmd.clearHistory()

simCmd.setSelectedScript

Description Change the selected script (combo box).
Lua synopsis simCmd.setSelectedScript(int scriptHandle, string lang="")
Lua parameters
scriptHandle (int): handle of the script
lang (string, default: ""): language (only applies to sandbox)
Lua return values -
Python synopsis simCmd.setSelectedScript(int scriptHandle, string lang="")

simCmd.setVisible

Description Show or hide the widget
Lua synopsis simCmd.setVisible(bool b)
Lua parameters
b (bool): if true the widget will be shown, otherwise it will be hidden
Lua return values -
Python synopsis simCmd.setVisible(bool b)