Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB controlling Powerpoint

Posted on 1997-10-20
2
Medium Priority
?
374 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 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

971 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