Can a Script, or Menu Command, be called from a key stroke?
Dave, check out the AATK some excellent examples in there. Here is a sample of one that I use.
Menu = 0Cmd = 1dim filenameAccelerator = 1Key = 2
Set keyBindTables = Gui.Bindings("Document")
Gui.Bindings("Document").AddKeyBinding "V", "Edit->Place->Via", Menu, Accelerator
Scripting.DontExit = True ' Keep on running
Many thanks for the response and sorry for the delay in replying (had login issues).
I have found out that a Key Binding can call a script as follows:
Bindings("Schematic").AddKeyBinding "F2", "run D:\Projects\scripts\viewdraw\hierarchy_bit_attr_visib.vbs", cmd, Key
But still don't know if such a script could be called from a Mouse Stroke
Retrieving data ...