Code: Select all
Sub Main
oPres = ThisComponent.Presentation
oPres.isEndless = True
oPres.isFullScreen = False
oPres.Start()
End Sub
I uploaded an unlisted video to YouTube showing this:
"OpenOffice Impress Macro Not Working After Opening Draw"
https://youtu.be/BmNwrVT-ks8
0:13 I show the OpenOffice version and Java version (OpenOffice 4.1.12, Java 1.8.0_333, Windows 10)
2:26 is when I show the macro working
3:12 is when I show the macro not working after I open a Draw document
I don't know why the error appears with Draw. When I open the Draw file after I open the Impress file and run the Impress macro, it works. But when I open it before I open the Impress file, the macro doesn't work. It's a useful macro, and I don't want to have to worry about when I open a Draw file to use the Impress macro, so any bug fixes or alternate macros would be appreciated.