Jump to content

Rewrite of the PowerPoint UDF


water
 Share

Recommended Posts

This works fine for me (PowerPoint 2019):

#include <PowerPoint.au3>

$oPPT = _PPT_Open()
$oPresentation = _PPT_PresentationNew($oPPT)
$oPresentation.ApplyTemplate("C:\Users\<user>\AppData\Roaming\Microsoft\Templates\LiveContent\16\Managed\Document Themes\<LocaleID>\<theme>.thmx")
$oSlide = _PPT_SlideAdd($oPresentation, 1)
Sleep(5000)
_PPT_Close($oPPT)

Edit: if you know what theme do you want to use when you create the presentation, just pass the path as second parameter to _PPT_PresentationNew().

Edited by Andreik
Link to comment
Share on other sites

Posted (edited)

Never had to work with themes. But I think you should simply apply an existing theme as described here.
Example:

$oPresentation.ApplyTheme("C:\Program Files\Microsoft Office\Templates\MyTheme.thmx")

Edit: Not fast enough ;)

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Posted (edited)

The Excel and Word UDFs have been part ot the AutoIt package for ages (at least  2008).
Some years later Jon/the Devs decided to not add more UDFs to keep the package small and easy to maintain.
So new UDFs (like the PowerPoint UDF) have to be published in the forum. Big advantage: You can fix bugs or add new functions frequently and release a new version every day.

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...