Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Windows does not provide a way to individually remove hot keys for an application (it only provides a way to replace the list of hot keys). Therefore,  Shogun Shogun Post keeps an internal list of all hot keys, until the -final flag is specified, when it copies the internal list to the application's list. This is done to speed up execution of the command.

...

Scroll tablelayout
style
sortDirectionASC
repeatTableHeadersdefault
widths20%, 10%, 13%, 57%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

Scroll tablelayout
style
sortDirectionASC
repeatTableHeadersdefault
widths12%, 15%, 14%, 13%, 46%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

NameFlag argumentsArgument typeExclusive toComments
ctrl0Specifies that the CTRL key must also be depressed for the command to execute. The default is no modifier.
shift0Specifies that the Shift key must also be pressed for the command to execute. The default is no modifier.
numPad0Certain keys are repeated on the number pad portion of keyboards (e.g. 19, +, , etc). Specifies that the key is the one on the number pad.
final0Specifies that this call to setHotKey is the last in a series. This flag should always be provided if only one call to setHotKey is being made. This is to reduce allocation and reallocation of hot keys in the system.

Return value

void

Examples

Code Block
languagetext
// Set some hot keys. Be sure to specify the -final

...


// flag on the last one.

...


setHotKey "cutKeys" "x" -ctrl;

...


setHotKey "fillGaps" "f" -shift;

...


setHotKey "step" "RIGHT";

...


setHotKey "play" "TAB";

...


setHotKey "stop" "TAB" -ctrl;

...


setHotKey -final;

Additional information

Related commands

...