How to detect when user switch from PowerPoint to other program?

W

Winston

Hi,
Anyone know how to detect when user switch from PowerPoint to other program?
What event can capture this?
Winston
 
C

Chirag

Application object publishes this WindowDeactivate event that gets sent when
any application or document window gets deactivated. In the event handler,
you can check if the foreground window's (GetForegroundWindow() API) owner
process (GetWindowThreadProcessId() API) is PowerPoint or not.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
Top