I've written a script which creates and enables a custom toolbar, but for some reason it will not display immediately. If I refresh the screen by going into and out of Full Screen mode (Shift+F11), the toolbar will then show, so I have tried reproducing this in script by using MainWindow.goFullScreen() and then MainWindow.exitFullScreen(), but it has no effect.
Does anyone know a way of mimicking a screen refresh in script? I know it can be done because maclean has done it in his Room Creator, but the script is encrypted so I can't nab his trick.