static async Task Main(string[] args) { Console.Write("Connecting to PowerPoint..."); ppt.SlideShowNextSlide += App_SlideShowNextSlide; Console.WriteLine("connected"); Console.Write("Connecting to OBS..."); OBS = new ObsLocal(); await OBS.Connect(); Console.WriteLine("connected"); OBS.GetScenes(); Console.ReadLine(); }
static async Task Main(string[] args) { Console.Write("Connecting to PowerPoint..."); ppt.SlideShowNextSlide += App_SlideShowNextSlide; // https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2003/aa211571(v=office.11) // ppt.SlideShowNextClick += App_SlideShowNextClick; // This event fires on every slide click (even those that don't progress to next slide) // ppt.SlideShowNextBuild += App_SlideShowNextBuild; // Not sure what this even does ppt.PresentationCloseFinal += App_PresentationCloseFinal; // ppt.SlideShowEnd += App_SlideShowEnd; Console.WriteLine("connected"); Console.Write("Connecting to OBS..."); OBS = new ObsLocal(); await OBS.Connect(); Console.WriteLine("connected"); OBS.GetScenes(); Console.ReadLine(); }