Utility: ScriptDev - Simple WSH IDE [VB6]

Description:

ScriptDev 2.5 is a fully functional basic WSH VBScript development environment.  It incorporates a basic script text editor with Find and Replace operations for VBScript WSH scripts in the .VBS format.  ScriptDev supplies a basic implementation of the WScript object allowing many simple scripts to be tested right within the IDE itself.  The limitations of this WScript object simulation are described in the ScriptDev Help.  ScriptDev can be used to develop and test both WScript and simple CScript scripts.

ScriptDev could be easily modified to support scripts in JScript as well.  Adding command line parameter support would make it more practical for CScript development.  There is no attempt made at syntax colorization or autocompletion.

While ScriptDev works as a simple IDE, its real purpose is to show how to host the Microsoft Windows Script Control in a VB6 program.  The program contains a few rare tricks as well, such as a more sophisticated way of using the VB6 DoEvents() function to allow keyboard input while a script is running.


Features:

* Basic WScript object emulation.

* Simulated console I/O via StdIn, StdErr, StdOut.

* Retains IDE settings and last open/save directory.

* Control over Timeout, AllowUI, SafeMode, WSH version returned.

* 4 or 8 character tabstops.

* Find, replace, syntax error highlighting.

* Lightweight (98K plus msscript.ocx).


Changes in 2.2:

* Fixed bug in Timeout menu processing.

* Added Line and Col display in status bar while in edit mode.

* Precompiled binary is now larger (compiled to native code).

* Minor optimizations, font changes.

* Added another short sample script.


Changes in 2.3:

* Removed internal WScript.Shell implementation.

* Added ability to specify WScript.Version values.

* Better able to interrupt/abort runaway scripts in IDE.


Changes in 2.4:

* Improved statusbar gripper behavior slightly.


Changes in 2.5:

* Corrected small bug where the WSH version selected in the IDE was not properly updating the checkmarks in the IDE menu.

* Reformatted simple online Help text.

* Added ability to change the IDE font to any monospaced font.


Changes in 2.6:

* Corrected handling of "press ESC" input when script terminates.

* If you download script56.chm and install it "next to" ScriptDev.exe it will appear in the Help menu.


Changes in 2.7:

* Small fix to "find next" logic once wrapped around whole script source.


Author:

Bob Riemersma


System Requirements:

Enclosed precompiled binary uses registration-free COM, which allows it to be stored on removable media and run without installation on Windows XP or later.  Tested on XP SP3, Vista SP2, and Windows 7 RC.

Should be possible to recompile and package ScriptDev for formal installation on Windows 9x, 2000, and later.

Requires Shell32.dll 5.0 or later, Windows Script 5.6 or later.


License:

Unencumbered public domain freeware.  May be used by anyone in whole or in part in either source or binary forms.  No guarantees or support offered.  ScriptDev is made available as-is for use at your own discretion.
