After refering to the analogartist reference, i have copie the simui.menus to my home directory( or work directory), and modify it to add a menu in Tools by add this line ("mytool" ?callback()) in the Tools section of the simui.menus file, but this menu did not turn up when the analogArtist stratup. it seems that the default menus are loaded in ADE. Does anyone know the reason? when i use the command ddGetStartupAll("menus"), the result shows ("~/menu"), i think it is the menu folder which i placed in my home folder. i got quite confused about how to add a user menu in ADE, thanks for explaining this method to me.
by the way, i have load this menu by adding this line "load("~/menu/simui.menus")" in my .cdsinit.
I think it would be best to check the name of the banner menu before deleting it, but the way to delay things would be to use hiRegTimer() to schedule the function to do the deletion to some point in the future. You probably need to record the current window though, because it's possible the current window may have changed by the time your delayed function kicks in.
It might be better to try to use the cdsenv variable I suggested earlier to set up the trigger, because the de trigger you're using won't work if you've (say) saved an ADE state in a cellView, and then you open the state cellView directly (say from the library manager) - because there's no schematic open to fire the de triggers.