Quantcast
Channel: Cadence PCB Design Forum
Viewing all articles
Browse latest Browse all 5525

Accel(Shortcut) In RegisterAction Not Work In Orcad Capture 17.2

$
0
0

I want to create an shortcut for my tcl script (for exmaple Tcl1)  so when I press "Ctrl+Shift+M" orcad run my script. To do that after reading many pages I reached to the following code

proc Tcl1 {} {

capDisplayMessageBox "This is a test" "Tcl1"

}


RegisterAction "Tcl1 Label" "capTrue" "Ctrl+Shift+M" "Tcl1" "Schematic"

This will create the shortcut but the created shortcut available only in the schematic window. I want to able to run this script anywhere (like in Symbol Editor) so as documentation and examples suggested I removed schematic in the last argument and execute following command instead

RegisterAction "Tcl1 Label" "capTrue" "Ctrl+Shift+M" "Tcl1" ""

But in the new case the command hitting shortcut/accel wong trig script anymore although the action is registed (confirmed by running UnregisterAction). Please if you know how can I solve this issue comment down below

Thanks


Viewing all articles
Browse latest Browse all 5525

Trending Articles



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