Key binding is governed by definition files located in the project directory and any directories specified by the WDIR environment variable.
The key binding file used depends on the setting selected in the Advanced tab of the Settings dialog box. When the Xpedition Layout Style Keybindings is enabled, the exped_wvo.vbs or the exped_pv.vbs files (located in %SDD_HOME%\standard\) are used, depending on the operating system. When it is disabled, the application will use the settings specified in the vdbindings.vbs file. See Table Table 1
Operating System |
Keybindings Enabled |
Keybindings not Enabled |
|---|---|---|
Windows |
exped_wvo.vbs |
vdbindings.vbs |
UNIX/LINUX |
exped_pv.vbs |
vdbindings.vbs |
These file names and locations may be overridden using a scripts.ini file. The scripts.ini file is executed during Xpedition Designer initialization only. This file must be located in the project - for project specific keybinding and stroke mapping - or in any of the directories specified by the WDIR environment variable for all projects. See Search Order for Scripts.
You can edit these files to bind your scripts to various key combinations. Shortcut keys for scripts can be any of the following:
Enter, Space, A-Z, 0-9, and F1-F12
These keys can be modified with the Alt, Ctrl, and Shift keys (or the various combinations thereof).
If you use the F1-F12 keys to bind your scripts, include a modifier (Alt, Ctrl, or Shift). The application uses F1-F12 to provide functionality by default. If you bind these keys to your script without a key modifier, you will disable the application functionality.
None
This example shows some typical key bindings.
' Constant Definition
Menu = 0 ' Used to specify
Cmd = 1
Accelerator = 1
Key = 2
NotSticky = 0
Sticky = 1
' Bind a menu command to a key
' Bind the Xpedition Designer Application FileOpen menu selection to
' Ctrl+O
Bindings("Application").AddKeyBinding "Ctrl+O","FileOpen",Menu,Accelerator
' Bind Xpedition Designer Schematic Edit>Delete Special selection to
' the Delete key
Bindings("Schematic").AddKeyBinding "Delete", "EditDeleteSpecial", Menu, Key
' Bind the Xpedition Designer Stroke sequence 357 to the internal
' zoom in command
Bindings("Stroke").AddStroke "357", "WVOZoomIn"
' Bind the execution of a user script to a key
Bindings("Schematic").AddKeyBinding "h", "run c:\testkeybind.vbs", cmd, Key