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