L’interface de VDS Renaissance est disponible en plusieurs langues. La documentation officielle est maintenue en anglais afin de garantir une référence unique, cohérente et toujours à jour.

HOTKEY

Windows Linux macOS

Syntax

HOTKEY ADD, { < name > , } < hotkey >

HOTKEY REMOVE, <name>

Description

This command allows a DialogScript program to respond to hotkeys by generating an event. You can set any number of hotkeys (as long as they have not been set by another program) and can test which one has been pressed using the @HOTKEY function.

HOTKEY ADD is used to define a hotkey. The optional parameter <name> defines the name that can be attached to the hotkey. This name will be returned by the @HOTKEY function when responding to a HOTKEY event. If <name> is not specified, the hotkey description is returned by the function instead. The hotkey is defined using the standard syntax for shortcuts, for example: F10, Shift+F8, Ctrl+Alt+F1.

The HOTKEY command can trap the Scroll Lock, Num Lock, Caps Lock and Print Scrn keys (the key identifiers are the same as for the @KEY() function.

HOTKEY REMOVE is used to remove (disable) a hotkey while the program is running. The value <name> should be the name (or hotkey definition) used when it was added.

Any defined hotkeys are automatically removed when the program terminates.

OK

Set to false if the command fails.

See also