Clarion Handy Tools
Templates, Classes, Utilities, Apps, Projects

October 26, 2019

Build 23D.02.00
Released October 26, 2019

** 23D.02.00 Details **

Continuing on from build 23D.01.00, we've focussed in this update on "Batch-Bots" integrated with your Clarion applications by CHT's ApplicationSnapIns Template, and related "Button" templates to provide window-interface applications that stretch the usability of Batch-Bots beyond mere DOS console and scripting implementations.

We've revised and updated with this update the following Batch-Bots, window-interface bot test applications and related bot integration templates.

HNDZIPNET.APP (fully revised)

HNDTESTCHTBOTHNDNETZIP.APP (new app)

BotZipStartButton Template (new template)

HNDENCRYPT.APP (fully revised)

HNDTESTCHTBOTHNDENCRYPT.APP (new app)

HNDMAILSMTP.APP (small revision of 23D.01.00 version )

HNDTESTCHTBOTCLASMTP.APP (small revision of 23D.01.00 version)

BotSMTPStartButton Template (small revision of 23D.01.00 version)

HNDMAILNET.APP (small revision of 23D.01.00 version)

HNDTESTCHTBOTNETSMTP.APP (small revision of 23D.01.00 version)

BotNetSMTPStartButton Template (small revision of 23D.01.00 version)

HNDMAILMAPI.APP (small revision of 23D.01.00 version)

HNDTESTCHTBOTCLAMAPI.APP (small revision of 23D.01.00 version)

BotMapiStartButton Template (small revision of 23D.01.00 version)

HNDMAILCDO.APP (small revision of 23D.01.00 version)

HNDTESTCHTBOTCLACDO.APP (small revision of 23D.01.00 version)

BotCDOStartButton Template (small revision of 23D.01.00 version)

HNDSEARCH.APP (small revision of 23D.01.00 version)

HNDTESTCHTBOTHNDSEARCH.APP (small revision of 23D.01.00 version)

BotSearchStartButton Template (small revision of 23D.01.00 version)

HNDTESTCHTSNAPSMTP.APP (small revision of 23D.01.00 version)

SnapSMTPStartButton Template (small revision of 23D.01.00 version)

HNDTESTCHTSNAPMAPI.APP (small revision of 23D.01.00 version)

SnapMAPIStartButton Template (small revision of 23D.01.00 version)

HNDTESTCHTSNAPGET.APP (small revision of 23D.01.00 version)

SnapGetStartButton Template (small revision of 23D.01.00 version)

HNDTESTCHTSNAPZIP.APP (small revision of 23D.01.00 version)

SnapZipStartButton Template (small revision of 23D.01.00 version)

SnapUnZipStartButton Template (small revision of 23D.01.00 version)

SnapZipDirStartButton Template (small revision of 23D.01.00 version)

HNDTESTCHTSNAPCRYPT.APP (small revision of 23D.01.00 version)

HNDTESTCHTSNAPDISK.APP (small revision of 23D.01.00 version)

October 11, 2019

Build 23D.01.00
Released October 11, 2019

** 23D.01.00 Details **

Continuing on from build 23D.00.00, we've focussed in this update, on "Snap-Ins" and "Batch-Bots" placed on/into your application by CHT's ApplicationSnapIns Template.

Last build - 23D.00.00 - we focussed exclusively on "Snap-Ins" (executables built with C#) this build update - 23D.01.00 - we've turned our attention primarily to, "Batch-Bots" (executables built with Clarion 10/11).

We've revised and updated with this update the following 5 Batch-Bots:

• HNDMAILSMTP.APP

• HNDMAILMAPI.APP

• HNDMAILNET.APP

• HNDMAILCDO.APP

• HNDSEARCH.APP

These 5 CHT "Batch-Bots" can be found pre-compiled and ready to run in .EXE format and located in Clarion's c:\clarionxx\accessory\bin\

They also can be found in source .APP format ready to compile, located in CHT's c:\clarionxx\hndapps\ directory.

New Demo Apps Leveraging Batch-Bots

By way of a reminder, CHT Batch-Bots are primarily single-function applications that may be run from: 1) DOS PROMPT 2) BATCH FILE 3) VBS SCRIPT 4) CLARION APP

To illustrate point #4 above, we've built for this CHT update, five new applications that illustrate using the above five "Batch-Bot" apps from a Clarion application. Each app acts as a user-interface to the Batch-Bot with which it is coupled.

• HNDTESTCHTBOTCLASMTP.APP

• HNDTESTCHTBOTCLAMAPI.APP

• HNDTESTCHTBOTNETSMTP.APP

• HNDTESTCHTBOTCLACDO.APP

• HNDTESTCHTBOTHNDSEARCH.APP

CHT templates that incorporate these "Batch-Bots" into Clarion applications are as follows:

New and Revised "Batch-Bot" Templates

Global templates an all apps discussed here:
1) ApplicationSnapIns Template
2) GlobalIncludeHNDSNAPCallFunctions Template

In addition to the above 2 global templates, Control templates located on each of the apps discussed here are as follows:

HNDTESTCHTBOTCLASMTP.APP - uses BotSMTPStartButton Control template (New)

• BotSMTPStartButton (New)

HNDTESTCHTBOTCLAMAPI.APP - uses BotMAPIStartButton Control template (New)

• BotMAPIStartButton (New)

HNDTESTCHTBOTNETSMTP.APP - uses BotNetSMTPStartButton Control template (New)

• BotNetSMTPStartButton (New)

HNDTESTCHTBOTCLACDO.APP - uses BotCDOStartButton Control template (Revised)

• BotCDOStartButton (Revised)

HNDTESTCHTBOTHNDSEARCH.APP uses BotSEARCHStartButton Control template (New)

• BotSEARCHStartButton (New)

 

October 1, 2019

Build 23D.00.00
Released October 1, 2019
Details

** ApplicationSnapIns Template Revised **

This global extension template is an incorporation point in your application for a number of stand-alone, mostly-single-function executables which have, by and large, been a growing and ever-evolving part of CHT's HNDAPPS suite of demo and utility applications for many years.

At this time, CHT has provided Snap-Ins for HTTP file movement, File compression and decompression, EMAIL protocols of various sorts, File Encryption, HTML-to- PDF file conversion, and system disk identification.

The individual "Snap-In" items listed and described below are the components which are fully available to you with any given CHT Build or Build Update. This list continues to evolve over time as this template's interface continues to evolve.

Snap-Ins presently available via this template: (8)
CHTSNAPEDIT.EXE, CHTSNAPGET.EXE, CHTSNAPMAPI.EXE, CHTSNAPSMTP.EXE CHTSNAPZIP.EXE, CHTSNAP2PDF.EXE, CHTSNAPCRYPT.EXE and CHTSNAPDISK.EXE CHT "Snap-Ins" are written in C#.

CHT Batch-Bots presently available via this template: (10)
HNDMAKEHZO.EXE, HNDMAILMAPI.EXE, HNDMAILCDO.EXE, HNDMAILSMTP.EXE HNDSEARCH.EXE, HNDSLFCMD.EXE, HNDMAILNET.EXE, HNDZIPNET.EXE,HNDENCRYPT.EXE, HNDFTPNET.EXE and HNDXML2HTMGEN.EXE.

CHT "Batch-Bots" are written in Clarion. The source code for these is available in your HNDAPPS directory as a standard part of your CHT toolkit.

CHT "Batch-Bots" and CHT "Snap-Ins" are primarily command-line utilities meant to perform a specific task independent of a standard windows-form interface. Some examples are: zipping a file (CHTSNAPZIP.EXE), or sending a file to a web-server (HNDSLFCMD.EXE) or fetching a file from a web-server (CHTSNAPGET.EXE), and so on.

These executables, while fully stand-alone, so they can be used from the DOS command-line, are also aviable application components used as you would a DLL, so they can be run also from inside a Clarion or C# application. Each runs as an independent process spawned from inside your application. Specific instructions as to how to perform any individual task are passed to these executables, on the command-line.

This Build, New and Revised
"CHTSNAP" Host Apps in Clarion

1-HNDTESTCHTSNAPGET.APP (CHTSNAPGET.EXE)
2-HNDTESTCHTSNAPZIP.APP (CHTSNAPZIP.EXE)
3-HNDTESTCHTSNAPCRYPT.APP (CHTSNAPCRYPT.EXE)
4-HNDTESTCHTSNAPDISK.APP (CHTSNAPDISK.EXE)
5-HNDTESTCHTSNAPMAPI.APP (CHTSNAPMAPI.EXE)
6-HNDTESTCHTSNAPSMTP.APP (CHTSNAPSMTP.EXE)
7-HNDTESTCHTSNAPTOOLS.APP (APPLICATION WITHDRAWN)

Example HNDTESTCHTSNAPGET.APP
(Revised This Build)

This application illustrates how to incrorporate CHTSNAPGET.EXE into a Clarion application via the global SNAP-IN interface template "CHT ApplicationSnapIns".

CHTSNAPGET.EXE is a command-line utility to download files from any CHT file server. It uses either the HTTP or HTTPS protocol.

CHTSNAPGET.EXE also has secure-file access capabilities. This requires user knowledge of the user-name/password combination protecting the file or files being downloaded. This secure mode can optionally use HTTPS protocol or HTTP protocol depending on server configuration.

File and HTTP header data, regardless of protocol, is encrtyped on request.

This application can be tested with CHT demonstration servers HNDSLFSV.APP or HNDFILSV.APP available in your \HNDAPPS\ directory.

External binary dependencies: CHTSNAPGET.EXE and HNDCAPCON.DLL

Example HNDTESTCHTSNAPZIP.APP
(Revised This Build)

This application illustrates how to incrorporate CHTSNAPZIP.EXE into a Clarion application via the global SNAP-IN interface template "CHT ApplicationSnapIns".

CHTSNAPZIP.EXE is a command-line utility that auto-zips a target directory while OPTIONALLY including any sub-directories of the source directory. CHTSNAPZIP.EXE also unzips to a target directory. This application illustrates how to do all of those things from inside a Clarion application using CHT Templates to write the code.

This application presents a SnapZipStartButton template and two input fields, a target zip file name field and a source directory name field. Complete these two fields and click the zip start button.

Other related templates used are SnapZipDirStartButton and SnapUnZipStartButton.

CHTSNAPZIP.EXE warns if the target zip file exists and if the source directory doesn't exist. Messages from CHTSNAPZIP.EXE appear in a window text control to tell you the outcome of pushing the zip button.

External binary dependencies: CHTSNAPZIP.EXE and HNDCAPCON.DLL

Example HNDTESTCHTSNAPCRYPT.APP
(New This Build)

This application illustrates how to incrorporate CHTSNAPCRYPT.EXE into a Clarion application via the global SNAP-IN interface template "CHT ApplicationSnapIns".

CHTSNAPCRYPT.EXE is a command-line utility with which to encrypt files (to .HYN extension) and optionally wrap the encrpted file into a .ZIP.

CHTSNAPCRYPT.EXE is configured with a --KEY established saved and configured in the registry which is used in the encrypt operation. Files encrypted and decrypted on the same machine are processed easily.

Files passed to other machines must first configure the correct encryption key before they can decrypt files passed to them.

External binary dependencies: CHTSNAPCRYPT.EXE and HNDCAPCON.DLL

Example HNDTESTCHTSNAPDISK.APP
(New This Build)

This application illustrates how to incrorporate CHTSNAPDISK.EXE into a Clarion application via the global SNAP-IN interface template "CHT ApplicationSnapIns".

CHTSNAPDISK.EXE is a command-line disk-drive information utility which provides: Drive Number, Drive Letter, Drive Type, Volume Label, File System, Space Available to Current User, Total Space Available, Total Size of Drive, and Disk Hardware Serial with the "--info" command.

The "--list" command provides a file called "chtsnapdisk.txt" containing the above information.

The "--listedit" provides a file called "chtsnapdisk.txt" containing the above information and on completion, opens the file with CHTSNAPEDIT.EXE.

The "--processor" command also identifies the current computer's processor ID.

The "--label" command provides for changing the disk-drive label.

External binary dependencies: CHTSNAPDISK.EXE, CHTSNAPEDIT.EXE and HNDCAPCON.DLL

Example HNDTESTCHTSNAPSMTP.APP
(New This Build)

This application demonstrates the CHT global template called ApplicationSnapIns.

This global template provides an interface to your application whereby several "Snap-In" components may be incorporated.

This application illustrates CHTSNAPEDIT.EXE and CHTSNAPSMTP.EXE.

CHT "Snap-Ins" are C# executables (EXE's) which provide various functionalies, that can be used standalone from the DOS prompt , from a DOS BATCH file, or programmatically from a Clarion application. The above "Snap-Ins" provide text editing and SMTP email, respectively.

Procedure-level button control templates are provided for each of the "Snap-In" executables in order to pass information to them and launch them from your application, seamlessly, just like dll-based procedures. Button templates are: SnapEditStartButton and SnapSMTPStartButton

External binary dependencies: CHTSNAPSMTP.EXE, CHTSNAPEDIT.EXE and HNDCAPCON.DLL

Example HNDTESTCHTSNAPMAPI.APP
(New This Build)

This application demonstrates the CHT global template called ApplicationSnapIns.

This global template provides an interface to your application whereby several "Snap-In" components may be incorporated.

This application illustrates CHTSNAPEDIT.EXE and CHTSNAPMAPI.EXE.

CHT "Snap-Ins" are C# executables (EXE's) which provide various functionalies, that can be used standalone from the DOS prompt , from a DOS BATCH file, or programmatically from a Clarion application. The above "Snap-Ins" provide text editing and SMTP email, respectively.

Procedure-level button control templates are provided for each of the "Snap-In" executables in order to pass information to them and launch them from your application, seamlessly, just like dll-based procedures. Button templates are: SnapEditStartButton and SnapSMTPStartButton

External binary dependencies: CHTSNAPMAPI.EXE, CHTSNAPEDIT.EXE and HNDCAPCON.DLL