Control a PowerPoint Slide Show on Mac from an IoT Device
Question details
Control a PowerPoint slide show on macOS using commands from an IoT project.

- Product
- Microsoft PowerPoint for Mac
- Device & OS
- macOS
- Scenario
- An IoT device needs to send keyboard, mouse, or navigation commands to a running presentation.
- Observed behavior
- The desired result is to navigate a PowerPoint slide show from the IoT device or an application connected to it.
Open the presentation in PowerPoint for Mac and confirm that your IoT device can send keyboard input or communicate with a program on the Mac. If you plan to use scripted keystrokes, check macOS permissions under System Settings > Privacy & Security.
Navigate the Slide Show with Keyboard Input or AppleScript
Use this approach when the IoT device can act as a keyboard or trigger a script on the Mac.
PowerPoint can respond to navigation keys while its slide show is active. A device that cannot send keyboard input directly can instead send a command to a trusted Mac-side program, which can run an AppleScript.
AppleScript GUI keystrokes depend on PowerPoint being active and may require macOS Accessibility and Automation permissions.
Open the presentation in PowerPoint and use the Slide Show tab to start it from the beginning or the current slide.
With the slide show active, press the Right Arrow key to advance or the Left Arrow key to go back. If the IoT device acts as a keyboard, configure it to send the same keys.
To advance from a Mac-side script, open Terminal and run: osascript -e 'tell application "Microsoft PowerPoint" to activate' -e 'tell application "System Events" to key code 124'. Key code 124 represents Right Arrow.
If macOS blocks the script, open System Settings > Privacy & Security > Accessibility and allow the app running it, such as Terminal. Also check Privacy & Security > Automation for any requested System Events access, then run the command again.
Configure your trusted Mac-side application to run the tested command when it receives the appropriate IoT event. Keep the slide show active and test each navigation action.

Present Slides with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface for opening and presenting slide decks. Its PowerPoint format support makes it easy to move existing presentations, though it does not fix PowerPoint automation or guarantee the same scripting controls.

Frequently Asked Questions
Can an IoT device advance PowerPoint slides without an API?
Yes. If the device can send keyboard input to the Mac, start the slide show and have it send Right Arrow to advance or Left Arrow to go back.
Why does my AppleScript keystroke not reach PowerPoint?
Check that the slide show is running and PowerPoint is active. Then review System Settings > Privacy & Security > Accessibility and Automation for permissions associated with the app running the script.
Can I use the PowerPoint JavaScript API on Mac?
Office Add-ins can run in PowerPoint for Mac, but individual APIs depend on their requirement set and the installed Office version. Check the PowerPoint JavaScript API and requirement set documentation for the specific operation you need; do not assume an API can inject keystrokes or control every slide-show action.
Can I use tools other than AppleScript for this project?
Automator, VBA, Objective-C, and Office Add-ins may be useful depending on the control required. Check each tool's supported operations and macOS permissions before choosing an integration method.




