Summary
The following steps describe how to hotlink to Windows-recognized media file. See the Windows Media Player help for more information.
Procedure
- Prepare the theme table for hotlinking. Be sure the complete path and file extension are included for each record.
See: How To: Prepare a table for hotlinking
- Open a new script window.
A. Activate the Project window.
B. Click the Scripts icon.
C. Click New.
- Copy the following code into the script window:
Code:
'-- When a hot link executes a script, the contents of the
'-- hotlink field are referenced by "Self"
linkfile = Self
exeString = "c:\Program Files\Windows Media Player\mplayer2.exe" ++ linkfile
System.Execute(exeString)
Note:
You may need to modify the name and directory of the Media Player in the above code.
- Click the Compile button.
- Select Properties from the Theme menu.
- Select the Hot Link icon on the right.
- Set the Hotlink field to the field with the path to the Windows Media Player file.
- Set the Predefined Action to 'Hotlink to User Script.'
- Set Script to the script created in Step 2 and click OK.