phuvf / oscpoint

OSCPoint is a PowerPoint add-in that allows Open Sound Control (OSC) control of PowerPoint on Windows
https://oscpoint.com
MIT License
37 stars 3 forks source link

Slideshow window issue when starting slideshow from named section #38

Closed phuvf closed 2 weeks ago

phuvf commented 2 months ago

Running on Windows 11, I start PowerPoint via Companion using Run Shell Path (local) and with the command line /c and the deck's file name. PowerPoint opens fine. When I then use OSCPoint Start Slideshow with a named section, PowerPoint drops into slideshow correctly, but does not display on the PC 2nd screen for streaming. If I close PowerPoint and manually reopen it, all works fine. Any suggestions?

phuvf commented 2 months ago

It's not possible to tell PPT (via it's object model) to start a slideshow from a particular slide, so OSCPoint has to send two commands to achieve this:

1 - Start slide show 2 - Go to slide x

This is pretty clunky and these two commands sent in quick succession may be why you're seeing this behaviour.

Do you have the same issue if you just start the slide show normally, from slide 1?

phuvf commented 2 months ago

Also, it'd be interesting to see the add-in logs for the machine when this happens. Feel free to add them in here.

ChrisSW58 commented 2 months ago

Thanks for the response. A couple of clarifications. I’m using named sections rather than specific slide numbers. Secondly, with no change in code, I restart PowerPoint and press the same button to start at the same section, and it all works. I’m not convinced it is a OSCPoint problem but I’m not the expert!

ChrisSW58 commented 2 months ago

Also, it'd be interesting to see the add-in logs for the machine when this happens. Feel free to add them in here.

Will try to get them later today if possible

phuvf commented 2 months ago

Thanks for the response. A couple of clarifications. I’m using named sections rather than specific slide numbers. Secondly, with no change in code, I restart PowerPoint and press the same button to start at the same section, and it all works. I’m not convinced it is a OSCPoint problem but I’m not the expert!

When you start from a named section, OSCPoint loops through all the sections in the presentation to find a section with a matching name. If it finds one, it uses the first slide information of the section to work out which slide to start from - then jumps to this slide number.

So the control between OSCPoint and PowerPoint itself is still a slide number request, even in this situation.

ChrisSW58 commented 2 months ago

Thanks for the response. A couple of clarifications. I’m using named sections rather than specific slide numbers. Secondly, with no change in code, I restart PowerPoint and press the same button to start at the same section, and it all works. I’m not convinced it is a OSCPoint problem but I’m not the expert!

When you start from a named section, OSCPoint loops through all the sections in the presentation to find a section with a matching name. If it finds one, it uses the first slide information of the section to work out which slide to start from - then jumps to this slide number.

So the control between OSCPoint and PowerPoint itself is still a slide number request, even in this situation.

Thanks for the explanation....however, the interesting item is that the initial OSCPoint call to display the correct slide is correct. On PowerPoint the correct slide moves into slideshow. PowerPoint is in slideshow mode with the correct slide - it just doesn't display on screen 2 where I use PiP control to put it on the screen. A PowerPoint restart, without restarting Companion, resolves the issue. It definitely sounds like a timing issue or incomplete initialisation somewhere.

ChrisSW58 commented 2 months ago

Apologies for the delay in getting these files to you. A few points:

I hope that all makes sense!

phuvf commented 2 weeks ago

Fixed in v2.x