INFO: Where to Obtain the Script Control

Article translations Article translations
Article ID: 184739 - View products that this article applies to.
This article was previously published under Q184739
Expand all | Collapse all

On This Page

SUMMARY

This article describes the procedure for obtaining the Script control.

MORE INFORMATION

On The Web

The Script control provides a simple way for your application to host a scripting environment. Supported scripting languages are VBScript, JavaScript, and any other compliant scripting language that will work with the Microsoft Internet Explorer web browser.

You can download the script control from the following Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyId=D7E31492-2595-49E6-8C02-1426FEC693AC&displaylang=en

This page also provides a link to documentation on how to use the control. The file name you will receive is sct10en.exe.

NOTE: Registration is required before downloading this control.

Visual Basic 6.0

The Script control ships with Visual Basic 6.0; however, Visual Basic 6.0 setup does not install the Script Control for you. The control is located in the CD directory Common\Tools\VB\Script. To install the script control, try the following steps:
  1. Copy msscript.ocx to Windows\system or WinNT\system32.
  2. Copy msscript.hlp and msscript.cnt to Windows\help or Winnt\help
  3. Copy dispex.dll, jscript.dll and vbscript.dll to Windows\system or Winnt\system32.
    NOTE: If you have newer copies of these DLLs on your system, do not overwrite them.

  4. Register msscript.ocx using RegSvr32.exe. Example:

    Regsvr32.exe c:\windows\system\msscript.ocx

Using the Script Control

The script control installs both as an ActiveX control that you can place on a form and as an ActiveX server that you can instantiate in code.

To make the control available to your project, click on the Projects Menu and select Components. This also makes the ActiveX server available.

To make just the ActiveX server available, click on the Projects Menu and select References.

REFERENCES

The help file for the script control contains limited sample code. For additional sample code, please see the following articles in the Microsoft Knowledge Base:
184742 : HOWTO: Use the Script Control Error Object

184745 : HOWTO: Use Script Control Modules and Procedures Collections

184740 : HOWTO: Call Functions Using the Script Control

(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Malcolm Stewart, Microsoft Corporation

Properties

Article ID: 184739 - Last Review: January 17, 2006 - Revision: 4.0
APPLIES TO
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
  • Microsoft Visual Basic 4.0 Standard Edition
  • Microsoft Visual Basic 4.0 Professional Edition
  • Microsoft Visual Basic 4.0 Enterprise Edition
  • Microsoft Visual Basic for Applications 5.0
Keywords: 
kbinfo kbscript kbctrl KB184739

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com