7 posts in this topic
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,
I can't find solution to check if object have variable or not, i have 2 variables in object, i use:
$oIE = _IECreate('D:\Dropbox\Projects\au3\IE_Builder\test.html') $oInputs = _IETagNameGetCollection($oIE, "form") For $oInput In $oInputs $d = $oInput.name If $d = 0 then ConsoleWrite("Form: " & $d & @CRLF) Next
And result is:
Form: 0 Form: d3e8f5e3ba12
I have tried many solutions, but no one works.... pls help. i can't separate this variables..