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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i launch programs from intranet web page?

Status
Not open for further replies.

NicklausM

IS-IT--Management
Joined
Aug 17, 2001
Messages
1
Location
RO
I just found some ActiveX program exestarter.ocx ,but this is shareware and is demo limited not to mention i don`t know a scrap about ActiveX so i must ask you guys for help!
At least i will appreciate if someone could show me how to use this Activex exestarter.ocx with my html code!?
This are the instructions the guys gave me, but hell i just can`t put them all together:

"In a HTML environment, ExeStarter® can be created by the tag:
<OBJECT classid=CLSID:30DE2722-BCFB-11D2-94A8-0020C5E1B1F1 height=29 width=247 id=ExeStarterCtrl></OBJECT>&quot;ExeStarter® Properties
Property Type/Access (R) - read-only; (W) - write-only; (RW) - read/write. Comments
ExePath String (RW) Mandatory Specifies the path/name of the executable that will be launched. You can specify for this path almost everything is accepted by the Run… option of the Start menu in Windows® (e.g. .exe, .cmd, .bat, UNC paths, etc.), or registered documents (.html, .doc, .xls, etc). Default Value: Windows Calculator: “calc.exe” Examples: ExeStarterCtrl.ExePath = “c:\runme.bat” ExeStarterCtrl.ExePath = “ ExeStarterCtrl.ExePath = “C:\My Documents\Purchase_Order.doc” ExeStarterCtrl.ExePath = \\SERVER\Shared\batch_proc.exe
Parameters String (RW) Optional Specifies the parameters of the executable indicated in the ExePath property. Default Value: Empty Examples: ExeStarterCtrl.Parameters = “iexplorer.exe” ExeStarterCtrl. Parameters = &quot;Enabled Boolean (RW) Optional Specifies the UI status (Enabled/Disabled) of the control. When the control is disabled, it cannot receive user interaction. This property also lets know if the control is enabled or disabled. Default Value: Enabled Examples: ExeStarterCtrl.Enabled = FALSE ‘Now the control is disabled ExeStarterCtrl.Enabled = TRUE ‘Now the control is enabled ‘ Here bCntrlStatus contains the status of the control bCntrlStatus = ExeStarterCtrl.Enabled
Caption String (RW) Mandatory Specifies the caption of the Control. Default Value: “Calculator” Examples: ExeStarterCtrl.Caption = &quot;Go to GeeksCo. Web Site&quot;
Font OLE_FONT (RW) Optional Specifies the caption typeface. You must set this value using control’s font property page. MS Visual Interdev can help you do that.
BorderWidth String (RW) Optional Specifies the width in pixels of the border of the Control. Default Value: 2 Examples: ExeStarterCtrl.BorderWidth = 3
BackColor OLE_COLOR (RW) Optional Specifies Control backgroud color. You can also set this value using control’s font property page. MS Visual Interdev can help you do that. Default Value: Light Gray &H00C0C0C0& Examples: ExeStarterCtrl.BackColor = &H000000FF& ‘ Red
ForeColor OLE_COLOR (RW) Optional Specifies Control foregroud color (text color). You must set this value using control’s font property page. MS Visual Interdev can help you do that. Default Value: Black &H00010101& Examples: ExeStarterCtrl.ForeColor = &H000000FF& ‘ Red

ExeStarter® Methods
Method Arguments / Return type (if applicable) Comments
Run None Allows start the executable programmatically using client-side scripts (VBScript or JavaScript). Examples: Sub btnStartIt_onclick ' Use Run to start the previously defined executable ExeStarterCtrl.Run End Sub
Refresh None Refreshes the Control UI when properties like BackColor, ForeColor, Caption and BorderWidth have changed. Examples: ExeStarterCtrl.BackColor = &H000000FF& ExeStarterCtrl.BorderWidth = 2 ExeStarterCtrl.Caption = &quot;Go to GeeksCo. Web Site&quot; ExeStarterCtrl.ForeColor = &H00000000& ExeStarterCtrl.Refresh

ExeStarter® Events
Method Arguments / Return type (if applicable) Comments
Click None This event is fired when the User clicks the control. Examples: Sub ExeStarterCtrl_Click MsgBox(&quot;ExeStarter Clicked!&quot;) End Sub &quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top