Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

embedding an exe in a HTML page

Status
Not open for further replies.

BillNielsen

Programmer
Jul 9, 2001
16
CA
We are creating a HTML based multi media Help CD for an application. We have created some screen capture videos of the application doing some common functions using Lotus Screen Cam. When we try converting these screen Cam videos to AVI the file size is in the 40-60 MB range. I have noticed that if we convert the Lotus Screen Cam videos (*.scm) to (.EXE) the file size is 1-2 MB. Unfortunately I cannot embed using:

<EMBED SRC=&quot;ReportsVideo/ReportWizard.exe&quot; </EMBED>

as it does not recognize as a video player.

I've tried also

<A HREF=&quot;ReportsVideo/ReportWizard.exe >Click Here </A>

but I get the download/save dialog box which I would like to avoid.

Does anyone know:
1)How to embed the EXE into the HTML page? OR
2)A different method or product to do this screen captures that either produce smaller AVI files or MIDI files?

Thanks,
Bill N
 
Here comes the ActiveX answer...

IF (big IF) the application can be started by creating an ActiveX object, then you could try modifying this code example to suit your needs. This code example will load up a Word document from a hyperlink.

Add this to your header section:
Code:
<script Language=vbscript>

function LoadWord(sFileName)

	dim objWord 
	dim docWord
	set objWord = CreateObject(&quot;Word.Application&quot;)
	set docWord = objWord.Documents.Open (sFileName)

end function

</script>

Then you call the function by adding a link inside the body:
Code:
<a href='vbscript:LoadWord(&quot;c:\path\filename.doc&quot;)'>filename.doc</a>[code]

Of course, this solution depends on you being able to replace &quot;Word.Application&quot; with something like &quot;ReportWizard.Application&quot;

I hope this helps you, I was pretty proud of myself when I wrote that code snippet.

Kevin
 
Also, you might want to check with Lotus to see if they have a free player that can be loaded as an ActiveX control, then leave the file as a .scm, and use the above code.

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top