Error with Playmovieaction on Igor7 (Windows)

I can't make the PlayMovieAction open=fullPath cmd work.

I've tried to write the fullPath as "C:\users\XXX\XXX.avi" or as "c:users:xxx:xxx.avi" and nothing works, while using the same fullPath with the cmd Playmovie as "C:\users\XXX\XXX.avi" works perfectly.

 

 

Does this example code work?

Function/S DoOpenFileDialog()
    Variable refNum
    String message = "Select a file"
    String outputPath
    String fileFilters = "Movie Files (*.avi,*.mp4):.avi,.mp4;"
    fileFilters += "All Files:.*;"

    Open /D /R /F=fileFilters /M=message refNum
    outputPath = S_fileName
   
    return outputPath       // Will be empty if user canceled
End

Macro PlayMovieActionDemo()
    String fullpath = DoOpenFileDialog()
    PlayMovieAction open = fullpath
    PlayMovieAction gotoEnd, getTime
    Variable tEnd = V_Value
    PlayMovieAction step=-1, getTime
    Print "frames = ", tEnd/(tEnd-V_value)
    PlayMovieAction kill
End