Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PptView automatic slideshow 1

Status
Not open for further replies.

cdkinfo

Technical User
Nov 23, 2005
2
FR
Here is my script and I'm searching for automate the slideshow and timing each slide in 7 sec.

Dim intCount
Set objPresentation = CreateObject("Wscript.Shell")
objPresentation.exec "C:\Program Files\Microsoft Office\Office14\pptview /L C:\Diffusion\Playlist.txt"

wscript.sleep 500
objPresentation.SendKeys "{F5}"

Set objShell = CreateObject("wscript.shell")

wscript.sleep 7000
objShell.SendKeys "{S}"
Do While intCount = 10
objPresentation.SendKeys "{F5}"
wscript.sleep 200
objPresentation.SendKeys "{S}"
wscript.sleep 7000

intCount = intCount +1

Loop

 
And the problem is ?
Anyway, I guess you should replace this:
Do While intCount = 10
with this :
Do While intCount <= 10

Furthermore I'd never use SendKeys without AppActivate.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Ok, but i want timing each slide, for example 7 sec. but i don't know how much slide there is in the slideshow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top