tpeck
04-13-2005, 03:30 PM
Hi. I have a piece of Active-X code that plays a track from a CD in the CD drive:
********************
<OBJECT id=player height=64 width=160 classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6></OBJECT>
<script>
player.uiMode="mini"
player.settings.autoStart=false
player.settings.volume=50
player.URL=src="'file:///"+letter+":/Track01.cda'"
</script>
*********************
Well, it does if I specify the CD drive letter.
You'll notice the variable "letter" because I would like the user to enter their own drive letter so the audio file will play whatever drive is the CD drive.
Am I asking the impossible? It seems to gasp and choke and throw errors before any attempt I make to get the input.
Thanks,
Terry
********************
<OBJECT id=player height=64 width=160 classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6></OBJECT>
<script>
player.uiMode="mini"
player.settings.autoStart=false
player.settings.volume=50
player.URL=src="'file:///"+letter+":/Track01.cda'"
</script>
*********************
Well, it does if I specify the CD drive letter.
You'll notice the variable "letter" because I would like the user to enter their own drive letter so the audio file will play whatever drive is the CD drive.
Am I asking the impossible? It seems to gasp and choke and throw errors before any attempt I make to get the input.
Thanks,
Terry