Andreik Posted March 21, 2024 Posted March 21, 2024 (edited) 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 March 21, 2024 by Andreik
water Posted March 21, 2024 Author Posted March 21, 2024 (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 March 21, 2024 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 Â
Andreik Posted March 21, 2024 Posted March 21, 2024 @water what's wrong with this UDF that didn't end up in standard AutoIt UDFs like excel or word? For me it looks pretty decent.
water Posted March 21, 2024 Author Posted March 21, 2024 (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 March 22, 2024 by water Andreik 1 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 Â
Andreik Posted March 21, 2024 Posted March 21, 2024 I can live with manual downloading of UDF to gain the advantage of quick fixes. Thank you for clarification. gcue 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now