Dear all,

First of all, I want to apologize for my english... I'll do my best.

I send this S.O.S. message because I need to insert some effects in a Impress 
presentation. What I need is to execute a macro when a picture embedded in the 
slide is pressed. The macro will execute several shell scripts and afterwards, 
it should move the presentation to the next slide.

I have tested some macros, and this one seems to work:

Sub Main
                Shell("prueba.sh", 2)
oDoc ThisComponent
                oPage = oDoc.getDrawPages()
                oSlide = oPages.getByIndex(2)
                oCtl = oDoc.getCurrentController()
                oCtl.CurrentPage = oDoc.drawPages(2)
End Sub

The picture is inserted into the first slide, and when I assign the macro and 
press the picture, it executes the "prueba.sh" script and moves to the 3rd 
slide. However, if I select the full screen presentation, everything works 
fine, unless the slide forward that stay on the 1st slide.

Could you help me? I have no idea about macros (that is my first one), so I'm 
sure it should be a kind of beginner mistake...



Thanks in advance
----------------------------------------------------
Joaquin Lopez Rizaldos
Telefonica Investigacion y Desarrollo
Emilio Vargas, 6. 28043, Madrid
Phone: +34 91 337 9096
mailto:[email protected]
----------------------------------------------------

Reply via email to