AnsweredAssumed Answered

Script Shortcut/KeyBinding in DxDesigner

Question asked by Marco.Sewtz on Aug 27, 2014
Latest reply on Sep 4, 2014 by Patrick.Cashman

I'am currently trying to get a keybinding for an often used script in DxDesigner EE7.9.4.

 

For Keybinding I use this script:

 

Option Explicit

Bind
Application.AppendOutput "Output", "Script executed"

'Functions
'''
''' Bind all user defined shortcuts here
'''
Sub Bind
 'Constants Definitions
 Const Menu = 0
 Const Cmd = 1

 Const Accelerator = 1
 Const Key = 2

 Const Sticky = 1
 Const NotSticky = 0

'Bindings
 Bindings("Application").AddKeyBinding "Ctrl+Shift+A", "run foo.vbs", Cmd, Accelerator
End Sub

 

 

The script foo.vsb is located in the WDIR directory and can be run using the command line in DxDesigner. Its only function is showing a MsgBox.


Now the problem:

The binding is registrated and can be found when executing "run ShowBindings.vbs", but there is no execution of the script.

Capture.JPG

 

Does anyone have an solution or workaround for this problem?

 

EDIT:

The script is based on the files

  • %SSD_HOME%/examples/pcb/scripts/KeyBindings.vbs
  • %SSD_HOME%/exped_wvo.vbs

Outcomes