PowerPoint Wrapper

  • Ich will diesen PowerPoint Wrapper benutzen
    http://www.autoitscript.com/forum/topic/50…rpoint-wrapper/
    da ich aber nicht weiter komme bitte ich um hilfe.
    1. Ich möchte eine Datei im Bestimten Verzeichis öffnen, davon eine tempräre kopie erstellen
    und dan Anzeigen im voll Bild modus.
    2. Danach soll das script jede Stunde die Datei neu Laden und zum Punkt 1 Springen
    soweit bin ich gekommen , Poweropint wird geöffnet aber die Dati wird nicht geladen was mach ich falsch.
    Viele Grüße

    [autoit]

    #include "PowerPoint.au3"
    #include <misc.au3>

    [/autoit][autoit][/autoit][autoit]

    $oMyError = ObjEvent("AutoIt.Error","MyErrFunc")

    [/autoit][autoit][/autoit][autoit]

    $objPPT = _PPT_PowerPointApp()

    [/autoit][autoit][/autoit][autoit]

    If @error Then
    MsgBox(0,"","No PowerPoint available")
    Exit
    EndIf

    [/autoit][autoit][/autoit][autoit]

    $PresInterface = _PPT_CreatePresentation($objPPT) ;Get presentation interface
    $objPres = _PPT_PresentationAdd($PresInterface) ;Add a new presentation

    [/autoit][autoit][/autoit][autoit]

    $objSlide1 = _PPT_SlideCreate($objPres, 1, $PPLAYOUTTEXT) ;Create a new slide with text layout, index = 1
    _PPT_PresentationOpen($objPres, "01.PPT")

    [/autoit][autoit][/autoit][autoit]

    _PPT_bAssistant($objPPT, 0) ;Ensure that Office assistant is turned off
    _PPT_SlideShowStartingSlide($objPres, 1) ;starting slide = starting from 1
    _PPT_SlideShowEndingSlide($objPres, _PPT_SlideCount($objPres)) ;ending slide = slide count
    _PPT_SlideShowRangeType($objPres, $PPRANGETYPESHOWBYRANGE) ;use the starting and ending slides
    _PPT_SlideShowLoopUntilStopped($objPres, 1) ;keep replaying presentation
    _PPT_SlideShowAdvanceOnTime($objPres, 1) ;auto advance slides
    _PPT_SlideShowAdvanceTime($objPres, 5) ;display each frame for 5 seconds
    _PPT_SlideShowAdvanceMode($objPres, $PPUSETIMINGS) ;use the slide transition times
    _PPT_SlideShowRun($objPres) ;start the slide show

    [/autoit]
  • hallo,

    bin selber etwas weiter gekommen ...

    [autoit]


    #include <Powerpoint.au3>

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    Global $objPPT = _PPT_PowerPointApp()
    Global $objPPS = _PPT_PresentationOpen($objPPT, "C:\Users\01.ppt")

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    While 1

    [/autoit][autoit][/autoit][autoit]

    _PPT_bAssistant($objPPT, 0) ;Ensure that Office assistant is turned off
    _PPT_SlideShowStartingSlide($objPPS, 1) ;starting slide = starting from 1
    _PPT_SlideShowEndingSlide($objPPS, _PPT_SlideCount($objPPS)) ;ending slide = slide count
    _PPT_SlideShowRangeType($objPPS, $PPRANGETYPESHOWBYRANGE) ;use the starting and ending slides
    _PPT_SlideShowLoopUntilStopped($objPPS, 1) ;keep replaying presentation
    _PPT_SlideShowAdvanceOnTime($objPPS, 1) ;auto advance slides
    _PPT_SlideShowAdvanceTime($objPPS, 5) ;display each frame for 5 seconds
    _PPT_SlideShowAdvanceMode($objPPS, $PPUSETIMINGS) ;use the slide transition times
    _PPT_SlideShowRun($objPPS) ;start the slide show

    [/autoit][autoit][/autoit][autoit]

    Sleep(25000) ;wait until slide show is complete (5 seconds x 5 slides = 25 seconds)

    [/autoit][autoit][/autoit][autoit]

    ;close ()

    [/autoit][autoit][/autoit][autoit]

    WEnd

    [/autoit][autoit][/autoit][autoit]

    Func close ()
    _PPT_PresentationClose($objPPS) ; ferme la presentation
    _PPT_PowerPointQuit ($objPPT);Exit PowerPoint
    EndFunc

    [/autoit]