hotKeyDialog()
The function opens a window that allows you to select a hotkey for a shape.
Synopsis
int hotKeyDialog(string &hotkey);
Parameter
| Parameter | Description | 
|---|---|
| hotkey | The saved hotkey | 
Return value
The function returns 0 if it was successfully executed.
Error
Description
The function opens a window that allows you to select a hotkey for a shape.
Figure: Hotkey Window
                
            
Example
The example opens a hotkey window and saves the hotkey in a variable. You can use the function, for example, in a tree in order to address the items of the tree.
main(mapping event)
{
  string hotKey;
  int i =hotKeyDialog(hotKey);
  DebugN("ReVal:", i, "Hotkey:", hotKey);
}
        Assignment
Graphics
Availability
CTRL