Creating a lightbox button that exits & moves to next slide

I have a full width slide (I am on Slide 2) that has a button on it that triggers a light box.

I want to create a button on the light box that then exits the light box and automatically changes to Slide 3 upon exiting .

I can do the exit slide from Wix Code or within the light box settings however, it appears that the “changeSlide” does not work on a light box. Is this correct? Is there an alternative script that i can use?

Many thanks

The lightbox is essentially like a separate page. So if your slideshow is not in the lightbox, you won’t have access to it from the lightboxes code. If you are opening and closing the lightbox via code, you can change the slide from the code of the page with the slideshow when the lightbox is closed.