Andreik Posted March 21 Share Posted March 21 (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 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
gcue Posted March 21 Share Posted March 21 worked beautifully thanks Andreik!!!! Link to comment Share on other sites More sharing options...
water Posted March 21 Author Share Posted March 21 (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 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki  Link to comment Share on other sites More sharing options...
Andreik Posted March 21 Share Posted March 21 @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. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
water Posted March 21 Author Share Posted March 21 (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 by water Andreik 1 My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki  Link to comment Share on other sites More sharing options...
Andreik Posted March 21 Share Posted March 21 I can live with manual downloading of UDF to gain the advantage of quick fixes. Thank you for clarification. gcue 1 When the words fail... music speaks. Link to comment Share on other sites More sharing options...
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