cmd_get_id()

Retrieves the command ID for a given command name.

Syntax

cmd_get_id(command_name)

Parameters

Parameter Type Description
command_name String The name of the command to look up.

Return Value

Examples

Get the ID of a specific command

cmd_get_id("File.Open_...");  // returns 4, the ID of "File.Open_..."

Get the ID of an unknown command

cmd_get_id("invalidCommand");  // 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