Hmmm, I don't know a CloseWB command, but if it's available (maybe in the 3rd party libraries?) then that would be the easiest way to go. I suspect it would just reopen the WB screen again when it finishes since that happens with lots of other programs that close Workbench, though I couldn't be sure.
As for the window method, yep, that looks perfect. I was actually thinking of opening a window on Workbench instead (WbToScreen 0 assigns Screen ID 0 to the Workbench screen so you can use it in Blitz), but that's the same effect.
|