source: https://github.com/dzzie/duk4vb
I have been tinkering with this project for a while now. I think it should be ready to share in the codebank now. binary compatibility has not been set yet but is probably about ready to. Figured I would open it up for feedback before finalizing the interface.
Image may be NSFW.
Clik here to view.
The project contains all of the logical stages of development in its various sub folders, from first getting the C javscript engine working with VB, to implementing basic COM integration for vb form elements, to integrating with the js engine debugger api as a standalone executable, to the final ocx which wraps it all into an easy to use component.
The Javascript engine is the C DukTape engine ( http://duktape.org/ )
The syntax highlight edit control is Scintilla (again done in C http://www.scintilla.org/ ) wrapped in another OCX done in vb6. The scivb ocx was originally done by Stewart Collier and Stu and released open source. I have also spent some time in there jiggling it around a bit. its repo is here:
https://github.com/dzzie/scivb2
The COM integration is done on the vb6 side but is not automatic like in teh script control. You have to generate javascript wrappers to represent the objects in js. This may be an intermediate stage, it is possible to generate these on the fly but will be allot of work and a ton of testing. Static files is a good safe route for now. There is a standalone vb6 generator for them. The intellisense lists also work off of parsing these generated class wrappers.
It supports breakpoints, step in/over/out, and mouse over variable values in tooltips.
I have already started using this control in a test project video below:
(This page also contains an installer that can setup all the dependencies for you.)
http://sandsprite.com/blogs/index.php?uid=7&pid=361
I have been tinkering with this project for a while now. I think it should be ready to share in the codebank now. binary compatibility has not been set yet but is probably about ready to. Figured I would open it up for feedback before finalizing the interface.
Image may be NSFW.
Clik here to view.

The project contains all of the logical stages of development in its various sub folders, from first getting the C javscript engine working with VB, to implementing basic COM integration for vb form elements, to integrating with the js engine debugger api as a standalone executable, to the final ocx which wraps it all into an easy to use component.
The Javascript engine is the C DukTape engine ( http://duktape.org/ )
The syntax highlight edit control is Scintilla (again done in C http://www.scintilla.org/ ) wrapped in another OCX done in vb6. The scivb ocx was originally done by Stewart Collier and Stu and released open source. I have also spent some time in there jiggling it around a bit. its repo is here:
https://github.com/dzzie/scivb2
The COM integration is done on the vb6 side but is not automatic like in teh script control. You have to generate javascript wrappers to represent the objects in js. This may be an intermediate stage, it is possible to generate these on the fly but will be allot of work and a ton of testing. Static files is a good safe route for now. There is a standalone vb6 generator for them. The intellisense lists also work off of parsing these generated class wrappers.
It supports breakpoints, step in/over/out, and mouse over variable values in tooltips.
I have already started using this control in a test project video below:
(This page also contains an installer that can setup all the dependencies for you.)
http://sandsprite.com/blogs/index.php?uid=7&pid=361