Now I know arudino can send data to the serial port of the pc, but how can I interface the serial port to power point?
Hi,
if you know any .NET programming language (i.e. VB, C#) there is an easy way for controlling a power point presentation from code:
string presPath = "c:/Temp/test_pps.ppt";
//Create an instance of PowerPoint.
Microsoft.Office.Interop.PowerPoint.Application app = new Microsoft.Office.Interop.PowerPoint.Application();
// Show PowerPoint.
app.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;
// Open a presentation.
Microsoft.Office.Interop.PowerPoint.Presentations ppPres = app.Presentations;
Microsoft.Office.Interop.PowerPoint.Presentation pres = ppPres.Open(presPath, MsoTriState.msoFalse, MsoTriState.msoTrue, MsoTriState.msoTrue);
// Show presentation.
pres.SlideShowSettings.Run();
// Here read a command from serial port (for example the ASCII char 'N' for next and 'P' for previous) and call
// pres.SlideShowWindow.View.Next(); or pres.SlideShowWindow.View.Next();
The previous code is in C# and some exception control should be added but is an example.