How to communicate between Matlab and a power point or Matlab and an acrobat reader

I want to send a variable from Matlab to PowerPoint or AcrobatReader, and then depend on the value of this variable, PowerPoint goes to the next or previous slide or exit, and also zooms in or out in acrobatreader. Is it possible? it should be because we can currently control this software via remote control, it means that they can receive data from outside, but how is it or what is the protocol? Tanx.

+5
source share
3 answers

You can control PowerPoint with ActiveX

h = actxserver('PowerPoint.Application');
h.Visible = 1; % make the window show up
h.Presentations.Open('C:\Temp\MyPresentation.pptx');
%%
h.ActivePresentation.SlideShowSettings.Run;  % there is now a slide show running
%%
hShow = h.SlideShowWindows.Item(1);
%%
hShow.View.GotoSlide(3);  % go to the 3rd slide
hShow.View.Next;   % go to next slide
%%
hShow.View.Exit;   % end slide show
%%
h.ActivePresentation.Close;   % close the presentation
%%
h.Quit;
delete(h);

MATLAB actxserver, MSDN Power Point. ActiveX MATLAB . methods(h) get(h) . . - hCollection.Item(N), N- .

+5

, , (, ..). - MATLAB, java.awt.Robot , MathWorks.

+1

All Articles