Solved

VB controlling Powerpoint

Posted on 1997-10-20
2
368 Views
Last Modified: 2008-03-06
I wis to use VB4 to control (ie start up with ppt file1, kill after 30 mins., start up with file2, kill etc) Office97 Power Point Viewer.

OLE seems slow.

I am using SHELL to start POWERPOINT VIEWER, then AppActivate to give it the focus and (after lapsed time) I use Sendkey to send ESCAPE to terminate Powerpoint.

This works fine 95% of time.

The other 5% of the time it appears that Powerpoint does not receive the ESCAPE and hence keeps running...I soon have multiple copies running.

Question, a) I would like to test that Powerpoint has correctly started, and correctly terminated (ie I need a way of checking Handle of Powerpoint.) I have followed advice in book ie API GetHandle etc ...this does not seem to work
b) How do I find out correct filename to place on right hand side of API call. Whatever I try it always seems to return a value of zero, implying that the application is not running.

Any advice?

Garry Homer
 
0
Comment
Question by:grh
2 Comments
 
LVL 5

Accepted Solution

by:
dirtdart earned 50 total points
ID: 1438252
If you are using Win95, while Powerpoint is running, press ctrl-alt-del.  This will show the task list.  The name of the powerpoint that is running will show in this list.  If you are using NT4, right click on the toolbar and show the task manager.  If powerpoint doesn't show up under the applications tab, check the processes tab.
0
 

Author Comment

by:grh
ID: 1438253
Very rapid response.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA color chart bars 12 86
using Access 8 68
Prevent checkbox click event occur while editing it in vb6 8 47
Export Data to Different .csv Files 26 105
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question