cmd_get_displayname()

Retrieves the display name of a command for a given command ID.

Syntax

cmd_get_displayname(command_id)

Parameters

Parameter Type Description
command_id Number The ID of the command to look up.

Return Value

Examples

Get the display name of a command by its ID

cmd_get_displayname(4);  // returns "Open ...", the display name of command ID 4

Get the display name of an invalid command ID

cmd_get_displayname(9999);  // returns None

See also

cmd_list
cmd_count

cmd_get_id
cmd_get_name
cmd_get_displayname

cmd_is_enabled
cmd_is_checked

cmd_exec