Catch lost focus in Powerpoint

  • Thread starter Thread starter Dev
  • Start date Start date
D

Dev

I need help with code to catch the lost focus in Powerpoint, to insert
into our VB programme that automates Powerpoint.
When a show is running in window mode you can run other programmes,
but when running in Kiosk full screen on 2nd monitor it stops if it
loses
focus. How can we trap and stop this, via API-hooking?
 
I use the c++ code below to check the focus of my slideshow periodically.
You can find the VB equivalent in the help or online at MSDN.

// find out if the presentation is paused.
int state = pres->SlideShowWindow->GetView()->GetState();

if(state == PowerPoint::ppSlideShowPaused)
 
Back
Top