Solved

VB controlling Powerpoint

Posted on 1997-10-20
2
366 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now