assignCommand is undoable, queryable, and editable.
This command allows the user to assign hotkeys and manipulate the internal
array of named command objects. Each object in the array has an 1-based
index which is used for referencing. Under expected usage you should
not need to use this command directly as the Hotkey Editor may be used
to assign hotkeys.
In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
|
-addDivider(-ad)
|
string
|
|
|
Appends an "annotated divider" item to the end of the list of
commands.
|
|
-altModifier(-alt)
|
|
|
|
This flag specifies if an alt modifier is used for the key.
|
|
-annotation(-ann)
|
string
|
|
|
The string is the english name describing the command.
|
|
-command(-c)
|
script
|
|
|
This is the command that is executed when this object is
mapped to a key or menuItem.
|
|
-commandModifier(-cmd)
|
|
|
|
This flag specifies if a command modifier is used for the key.
This is only available on systems which support a separate command key.
|
|
-ctrlModifier(-ctl)
|
|
|
|
This flag specifies if a ctrl modifier is used for the key.
|
|
-data1(-da1)
|
string
|
|
|
Optional, user-defined data strings may be attached to
the nameCommand objects.
|
|
-data2(-da2)
|
string
|
|
|
Optional, user-defined data strings may be attached to
the nameCommand objects.
|
|
-data3(-da3)
|
string
|
|
|
Optional, user-defined data strings may be attached to
the nameCommand objects.
|
|
-delete(-d)
|
int
|
|
|
This tells the Manager to delete the object at position index.
|
|
-dividerString(-ds)
|
string
|
|
|
If the passed index corresponds to a "divider" item, then the
divider's annotation is returned. Otherwise, a null string is
returned.
|
|
-enableCommandRepeat(-ecr)
|
boolean
|
|
|
This flag specifies whether command repeat is enabled.
|
|
-factorySettings(-fs)
|
boolean
|
|
|
This flag sets the manager back to factory settings.
|
|
-index(-i)
|
int
|
|
|
The index of the object to operate on. The index value
ranges from 1 to the number of name command objects.
|
|
-keyArray(-ka)
|
|
|
|
This flag returns all of the hotkeys on the command.
|
|
-keyString(-k)
|
string
|
|
|
This specifies a key to assign a command to in edit mode.
In query mode this flag returns the key string, modifiers and
indicates if the command is mapped to keyUp or keyDown.
|
|
-keyUp(-kup)
|
|
|
|
This flag specifies if the command is executed on keyUp
or keyDown.
|
|
-name(-n)
|
|
|
|
The name of the command object.
|
|
-numDividersPreceding(-ndp)
|
int
|
|
|
If the index of a namedCommand object C is passed in,
then this flag returns the number of "divider" items preceding
C when the namedCommands are sorted by category.
|
|
-numElements(-num)
|
|
|
|
This command returns the number of namedCommands in the system.
This flag doesn't require the index to be specified.
|
|
-optionModifier(-opt)
|
|
|
|
This flag specifies if an option modifier is used for the key.
|
|
-sortByKey(-sbk)
|
boolean
|
|
|
This key tells the manager to sort by key or by order of
creation.
|
|
-sourceUserCommands(-suc)
|
|
|
|
This command sources the user named command file.
|
|