Links for PowerPoint

Hi, I want to make a PowerPoint with Syrinscape links embedded so they play on click or automatically to play during my game. Do i have to install the Syrinscape apps to do this? Or can i get links from the online master links?

Thanks,
Lisa
SuperSyrin Subscriber

Hiya @aliciawright5 :slight_smile:

Yes copying these links from the Master UI, and opening them anyhow will trigger that playback on YOUR account (not the links include your auth token). Anyone listening to your session with the Web Player open anywhere will hear that playback.

The tricky thing is stopping Powerpoint from opening up that link in an acutal browser tab every time you click on it in the slide.

In my Stream Deck I can set a button to open a link as a “GET request in background”. Is that something you can do on Powerpoint = does anyone know?

Let me know how you go! :slight_smile: :robot: :hammer:

Also potentially tricky, knowing how to make those buttons appear! Hamburger menu (three horizontal lines in the top right of Ben’s screenshot) and then “Show Remote Control Links”:

The "Download Remote Control Links may also be of interest to you, if you wanted a big file with all the play URLs you have access to.

As for how to trigger a fetch without opening the browser, a bit of untested Googling suggests if you were brave enough, you could get your hands dirty with some VBA:

  1. Open your presentation in PowerPoint.
  2. Press Alt + F11 to open the VBA editor.
  3. Click Insert > Module.
  4. Paste the following code into the module window:
Const BASE_URL As String = "https://syrinscape.com/online/frontend-api/"
Const AUTH_TOKEN As String = "<your_auth_token_here>"

Sub StartElement(elementId As Long)
    Call SendSyrinscapeCommand("elements", elementId, "play")
End Sub

Sub StopElement(elementId As Long)
    Call SendSyrinscapeCommand("elements", elementId, "stop")
End Sub

Sub StartMood(moodId As Long)
    Call SendSyrinscapeCommand("moods", moodId, "play")
End Sub

Sub StopMood(moodId As Long)
    Call SendSyrinscapeCommand("moods", moodId, "stop")
End Sub

Private Sub SendSyrinscapeCommand(apiType As String, id As Long, action As String)
    Dim url As String
    Dim xmlHttp As Object
    
    url = BASE_URL & apiType & "/" & CStr(id) & "/" & action & "/?auth_token=" & AUTH_TOKEN

    Set xmlHttp = CreateObject("MSXML2.XMLHTTP")
    xmlHttp.Open "POST", url, True 
    xmlHttp.send
End Sub
  1. Make sure you swap in your Auth Token you can find in one of the copied links from the MI, or by visiting your Control Panel (https://syrinscape.com/online/cp/).
  2. Connect the appropriate subroutine to something in the slideshow to automate the request.

You might also find other useful things you can do with our HTTP API here: https://docs.syrinscape.com/http-reference/.

If you are using the web based version of PowerPoint, then something similar with a JavaScript fetch should do the trick.

Let me know how you get on!

1 Like