Solved

VB controlling Powerpoint

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Updates not working for MS Windows 7 12 183
Add a task in Outlook from access 11 42
How to Add / Edit Windows Menu 4 68
MS SQL Update query with connected table data 3 41
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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