HTA (HTML Application) communication with Basic Stamps
Ron Czapala
Posts: 2,418
I have seen many messages about commicating with stamps using Hyperterminal, Visual Basic, etc but I like using HMTL Applications (.hta).
This approach lets you use a visual interface·utilizing buttons, dropdowns, etc.
You can just doubleclick the HTA file ins Windows·Explorer·to execute it.
To make it easier to select a serial port, I wrote a DLL in VB6 (I'm sure it would be easy to do in other versions of VB) which lets me check which comm ports are available.
I am attaching the BS2 code, HTA file, and VB6 code for anyone who might want to explore this approach. The DLL is also included but you need the other VB6 support files (e.g. MSVBVM60.dll) which may already be in your Windows System32 directory.
This approach lets you use a visual interface·utilizing buttons, dropdowns, etc.
You can just doubleclick the HTA file ins Windows·Explorer·to execute it.
To make it easier to select a serial port, I wrote a DLL in VB6 (I'm sure it would be easy to do in other versions of VB) which lets me check which comm ports are available.
I am attaching the BS2 code, HTA file, and VB6 code for anyone who might want to explore this approach. The DLL is also included but you need the other VB6 support files (e.g. MSVBVM60.dll) which may already be in your Windows System32 directory.
zip
18K
Comments
I am attaching it in this post.
There may also be an issue using the CreateObject("MSCommLib.MSComm") statement unless you have the MSCOMM32.ocx file (and it's dependent files and·license)·which is installed with VB6.