Run multiple slideshows programmatically using python-uno

I am using the Python-uno interface to run OpenOffice and run PowerPoint slideshow on a Linux based ad system. Now the client wants to make a split screen and simultaneously show four different slideshows on the screen.

But whenever I start the slide show in the second instance of OpenOffice, the first slide show is frozen.

Has anyone encountered this problem before? Has anyone solved this?

I am running OpenOffice 2.4 on Debian Linux. I run two completely separate instances of OpenOffice in separate processes, but they still affect each other.

0


source to share


1 answer


I know this is a dead post, but I think it would be helpful for anyone else who has this problem.

Try to go to this forum . You can try to use an OpenOffice macro and access it using a python function. Here is the macro code:



Sub hello 

    dim xPresentation as object 
    set xPresentation = thiscomponent.getpresentation 
    xPresentation.setPropertyValue("IsEndless", true)  'loops around 
    xPresentation.start() 

End Sub

      

For the python part, I think you will need to call / usr / bin / soffice (possibly / usr / lib / libreoffice / program / soffice) with the url: macro: /// MyLibrary / MyModule / MyFunction (/ main / Foo /bar/MyImpressDoc.sxi "

+1


source







All Articles