Hi guys.
I want to open a .pptx presentation as a .pps (without change the extension)
Local $obj = ObjCreate("PowerPoint.Application")
Local $PresInterface = $obj.Presentations
Local $objPres = $PresInterface.Open(@ScriptDir & "\Presentacion.pptx")
$objPres.SlideShowSettings.Run()
$obj.visible = 0
; Waiting for user to close the window
Sleep(8000)
$obj.Quit()
Exit
I want to hide the powerpoint application before it has opened the presentation in fullscreen.
But the .visible=false dosn't work whereas MSDN says it's possible.
We intercepted a COM Error !
err.description is: Application.Visible : Invalid request. Hiding the application window is not allowed.
err.windescription:
err.number is: 80020009
Have you got an idea why it's not allowed?
Another possibility which do the same thing :
On msdn forum, i found this (VB): http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/e0c6bde2-ed02-42e1-87ed-36d56297fdea/
appPPT.Presentations.Open filename, WithWindow:=False
But can't manage to code this with AutoIt:
Local $objPres = $PresInterface.Open(@ScriptDir & "\Presentacion.pps","WithWindow:=false")
Someone has an idea?
Thx a lot in advance,
Tim