EKY32 Posted September 14, 2013 Share Posted September 14, 2013 (edited) Hey there, I've searched the forum for that, i found >PP UDF and was so great but I couldn't find a way to embedded the PowerPoint file in a COM object in a GUI, and even in an IE Object i had to use Microsoft offer and Google offer, but I need to do view the ppt file offline if AutoIt can embedded the file same as IE or SWF.. thank you always.......... Edited September 14, 2013 by EKY32 [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
ahmed9100 Posted September 14, 2013 Share Posted September 14, 2013 Im a beginner and the beginner idea is convert the ppt file to avi and use it in autoit Link to comment Share on other sites More sharing options...
EKY32 Posted September 14, 2013 Author Share Posted September 14, 2013 (edited) Thank you, the pps file has interactive contents that the user should work with, I saw many many other ways on the internet but all the ways are not powerful and should be used online. Edited September 14, 2013 by EKY32 [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
water Posted September 14, 2013 Share Posted September 14, 2013 You could give GUICtrlCreateObj a try and see if you can embed the PowerPoint object (created by the PP UDF) the same way as the IE object is embedded in the example script provided by the help file. 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 More sharing options...
EKY32 Posted September 14, 2013 Author Share Posted September 14, 2013 You could give GUICtrlCreateObj a try and see if you can embed the PowerPoint object (created by the PP UDF) the same way as the IE object is embedded in the example script provided by the help file. Thank you, i tried that, the object is created but not viewed in the GUI, and when i use $objPresentation.SlideShowSettings.Run.View it appears in a new PP window so if what i want is not possible i think there is a way to attach the pp window into my GUI. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
EKY32 Posted September 14, 2013 Author Share Posted September 14, 2013 well, here is the full PowerPoint Object Model Documentation in MSDN but i'm not sure i can find it in this professional mass. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
water Posted September 14, 2013 Share Posted September 14, 2013 Can you post the script you used? 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 More sharing options...
EKY32 Posted September 14, 2013 Author Share Posted September 14, 2013 (edited) Ok here is it, just simple as you see but need to be configured in a better way: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $PPS = ObjCreate("PowerPoint.Application") GUICreate("Embedded PPS control Test") GUICtrlCreateObj($PPS, 0, 0, 200, 200) GUISetState() $PPS.Presentations.Open("C:\Test.pps") While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Edited September 14, 2013 by EKY32 [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
water Posted September 15, 2013 Share Posted September 15, 2013 I tried but was unseccussfull too. Maybe the problem is described in the Remarks section of GUICtrlCreateObj: "This function attempts to embed an 'ActiveX Control' or a 'Document Object' inside the GUI. Not every control can be embedded. They must at least support an 'IDispatch' interface." 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 More sharing options...
trancexx Posted September 15, 2013 Share Posted September 15, 2013 Use COM error handler for debugging while developing and you will get all the answers. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
water Posted September 15, 2013 Share Posted September 15, 2013 GUICtrlCreateObj returns: E_NOINTERFACE - No such interface supported - 0x80004002 Looks like you can't do what you want to do with GUICtrlCreateObj. EKY32 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 Link to comment Share on other sites More sharing options...
EKY32 Posted September 15, 2013 Author Share Posted September 15, 2013 Thank you all, [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] 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