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.
In response to the PM I got: Using the precompiled version of the program with Windows XP (SP2 or later is probably best), Vista, etc. is a simple matter of copying the contents of the "bin" folder to your hard drive or even a flash drive. The versions of the VB6 runtime components on these systems should be fine for use with this utility. If you put it on your hard drive you might want to make a shortcut to it.
I'll look at the change needed for "Shell integration." Without an installer you'd have to go the "open with" route to set this up though. I'll consider adding this as an option within the program.
As it is now the program stores its INI (settings) next to the EXE unless it detects that it has been installed into "Program Files." In that case it makes an entry in your user profile (LOCALAPPDATA).
Last edited by dilettante; May 16th, 2021 at 09:50 AM.
Reason: Info
Better able to interrupt/abort runaway scripts in IDE.
The first is the most important. Using the regular WScript.Shell is more useful for people using this as a utility than it was as an example for those interested in using the source as an example.
The Version change is probably gingerbread. I doubt many script writers ever check the WSH version.
The last one can be useful, but to fully enable it you will want to add WScript.Sleep 0 inside loops you are worried might run away. This allows the use of Ctrl-C to abort such a runaway.
Remember, though ScriptDev is a VBScript IDE you could easily modify it for use as a JScript IDE or even make the script language selectable.
Reposted the program Oct 9 to correct a bug in Ctrl-C detection during WScript.Sleep calls.
Last edited by dilettante; May 16th, 2021 at 09:50 AM.
Reason: Reposted attachment
Corrected small bug where the "WSH version lie" selected in the IDE was not properly updating checkmarks in the menu.
Reformatted simple online Help text.
Added ability to change the IDE font to any monospaced screen font installed.
Version 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.
Version 2.7:
Small fix to "find next" logic when we've wrapped around whole script source.
The former CdlOpenSave.cls was rewritten as CommonDlgs.cls, including a ShowFont() method for selecting fonts in addition to ShowOpen() and ShowSave(). May be useful in other projects for replacing COMDLG32.OCX by direct use of COMMDLG.DLL instead.
The program is larger of course, between compiling for native code and adding features it is now around 108KB. The precompiled reg-free COM version is still included as before, allowing "portable" use from removable read/write media like USB flash drives.
If you download the Scripting Help from Microsoft be sure to "unblock" it afterward as suggested on the download page: Windows Script 5.6 Documentation.
The precompiled binaries are now in a folder named "ScriptDev" instead of "bin" which seemed to cause so much confusion.
Last edited by dilettante; Dec 3rd, 2009 at 03:46 PM.
Reason: Updated to version 2.7