Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

Re: Can a Script or Menu Command be called from a key stroke?

$
0
0

Dave, check out the AATK some excellent examples in there.  Here is a sample of one that I use.

 

Menu = 0
Cmd = 1
dim filename
Accelerator = 1
Key = 2

Scripting.AddTypeLibrary("MGCPCB.Application")

 

Set keyBindTables = Gui.Bindings("Document")

 

Gui.Bindings("Document").AddKeyBinding "V", "Edit->Place->Via", Menu, Accelerator

 

Scripting.DontExit = True ' Keep on running


Viewing all articles
Browse latest Browse all 4541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>