[python-win32] Re: Query

Roger Upole rwupole at msn.com
Wed Mar 8 05:03:50 CET 2006


Rob Lane wrote:
> Hey,
> 
> I am currently working on a final year project in college building a 3-D
> virtual model of a building in a python based program called Vizard. I have
> prepared a set of tutorials on powerpoint which i would like to access by
> clicking on various objects in the building. e.g. Click on a Window/Air Duct
> and then open a powerpoint presentation on the topic.
> 
> I was wondering if there is python code which will let me launch my
> powerpoint presentations from with my virtual world.
> 
> Any help would be greatly appreciated
> 
> kind regards,
> 
> Robert Lane

You can automate Powerpoint with COM:

import win32com.client
pp=win32com.client.gencache.EnsureDispatch('powerpoint.application',0)
pp.Visible=1
pr=pp.Presentations.Open('somefile.ppt')

    hth
        Roger





More information about the Python-win32 mailing list