I'm not sure what you mean. In UE you have one "Output Window" for script output (like UltraEdit.outputWindow.write("foo") ) - but whenever you run a DOS command or a User Tool with the "Capture Output" option set a new "Command output window" is opened.
A "Command output window" cannot as such be reused. But since they are ordinary editor windows (documents in script terms) you can setup your script to do some "housekeeping" and close unwanted "Command output windows" before a new window is created in by the script when a UserTool is invoked.
- Code: Select all
for (var i=UltraEdit.document.length - 1;i >= 0 ;i--) {
if(UltraEdit.document[i].path.substr(0,14) == 'Command Output') {
UltraEdit.closeFile(UltraEdit.document[i].path,2);
}
}
If you only want to close 'Command output' related to a certain script, then do a find (UltraEdit.document[i].findReplace.find("...")) for specific strings and close the files depending on the find result.