oscpoint icon indicating copy to clipboard operation
oscpoint copied to clipboard

Slideshow window issue when starting slideshow from named section

Open phuvf opened this issue 1 year ago • 7 comments

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 avatar Apr 23 '24 06:04 phuvf

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 avatar Apr 23 '24 06:04 phuvf

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

phuvf avatar Apr 23 '24 06:04 phuvf

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 avatar Apr 23 '24 07:04 ChrisSW58

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

ChrisSW58 avatar Apr 23 '24 07:04 ChrisSW58

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.

phuvf avatar Apr 23 '24 07:04 phuvf

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 avatar Apr 23 '24 08:04 ChrisSW58

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

  • The laptop is shut down overnight.
  • PowerPoint is started as described and the slide deck opened by Companion when the streaming system is started.
  • The issue is intermittent but happens most times. Restarting PowerPoint solves the issue.
  • 2024-04-26_oscpoint.log is when PowerPoint is started and does NOT go to the monitor for display on the streaming
  • 2024-04-26_oscpoint 2.log is a few seconds later when PowerPoint is restarted and this time it works. Companion was NOT restarted or changed in any way.
  • On both occasions, OSCPoint is opening the correct slide in PowerPoint and putting it into slideshow mode on the laptop 2024-04-26_oscpoint.log 2024-04-26_oscpoint 2.log

I hope that all makes sense!

ChrisSW58 avatar Apr 26 '24 10:04 ChrisSW58

Fixed in v2.x

phuvf avatar Jun 15 '24 20:06 phuvf