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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top