Set interaction through API


I am trying to write a python script which interacts with an Impress presentation. In Impress I can select a shape, right click on it, and in “interaction” menu, I can set macros to run on shape click.

Can I set listeners for click events for shapes through UNO API?
I could not find anything related in .


Well, this blog post (and the whole series) describes how to write a LibreOffice unit test (in Python) for UI interactions. Possibly it may be of some help. You may also contact the author (Markus Mohrhard, one of LibreOffice lead Calc developers) on #libreoffice channel on FreeNode (IRC nick moggi).