10-26-2006 04:17 AM
10-26-2006 09:30 AM
10-26-2006 09:31 AM
If the path to the media file has spaces in it, you will need to surround the path with quotes. So, your argument expression would be something like:
"\"" + Locals.MyPathWithoutQuotes + "\""
or
"\"c:\\foo bar\\bar foo.avi\""
10-26-2006 09:33 AM
10-26-2006 10:00 AM
Thank you for the answer James.
My Argument expression file paths did contain spaces, which I did not show in my previous examples.
It threw me when Notepad's Argument expression worked fine with spaces but not Windows Media Player.
thank you,
Gary.
10-27-2006 01:14 PM
Gary -
FYI, with TS 3.5, the MessagePopup step can also display html files. The html file can reference the player control and tell it to run immediately. The html code looks like this:
<HTML>
<HEAD>
<TITLE>Multimedia Control Page</TITLE>
</HEAD>
<BODY LANGUAGE = VBScript>
<p>
My header text
<p>
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="300" height="200">
<param name="URL" value="c:\windows\clock.avi">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="-1">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
</object>
</p>
My footer text
</BODY>
</HTML>