Hotbasic Custom Command 2.1

What is Custom Command good for ?
Custom Command is a addon for Hotbasic that simplify the use of new commands in the compiler.
There is no need to remember to add the new commands with a $include in the begining of the .bas file.
With the optimizer all clever new functions and even custom objects developed by the Hotbasic community
can be used in your software as a native command.

News by version
2.1 2011 MileStone
Added Support to use Custom Command to create custom commands using $Define
2.0 Official Release
Custom Command has gone gold and with this release there is only a .exe file in the release
“software is GOLD”
I have rebuilt the Object support so it now supports any case of properties and subs.
I have added a help file for all the custom commands.
This help file is supported in HBAssistant so you easy can find these custom commands.
A new release of the debugger has been released before that supports the optimizer.
1.4 Beta
Added support for custom objects in custom command
1.3 Beta
Commands can be written in any case
1.2 Beta
Support for autodiscovery of commands

Help me improve this program and make HotBasic a better compiler, send me new commands
that you think should be included as a Custom Command in Hotbasic. Send the .inc file and
a description on what the function does to Fredrik at fnoware.st not every command can be
apart of the official release but I hope to include as many as I can.

To setup Custom Command use HBSetup and check Custom Command the software will be
setup automatical.

CCDEMO_HEX64 and CCDemo_STR will be stored in your Hotbasic folder. The HBAssistant helpfile
is stored in your inc/CC folder and can be located in HBAssistant under user files,

You need at least Hotbasic optimizer 1.1a to get everything to work

Place the Hotopti0.exe in the same folder as your hotbasic compiler file

preinstalled in the package is my own additions to Hotbasic
strleft,strleftback,strright,strrightback plus some addons by other authors, see header for creator.

The .inc files do you copy to a subfolder in your hotbasic include folder
named CC if you use the preconfigured way.
in other cases use a CCSettings.ini.
The file CCSettings.ini
that should contain the path to the include directory and the cc folder
i.e  HotInc\CC

If you include directory is called inc or hotinc just place a folder in this one called
CC and start adding your custom commands here and optimizer will find all your new command automatically

You need have Hotbasic configured to use hotbasic optimizer with the -o switch
to be able to use my addon. But when you are done you could just write your
code as you like and ignore if the commands your are using is ordinary Hotbasic
or Custom Commands. Everything is Native!

If you have other optimizers installed just change the 0 at the end of the filename
to the appropriate free number 0 - 9.

Because this optimizer addon is runned after the Hotbasic optimizer any unused functions or subs
are not stripped out of the application and that is the reason why I have created separate
.inc files for each custom command.

The functions names of the custom commands or objects must be in uppercase,
The commands can be written in any case like all commands native commands in Hotbasic.

If you want to add objects just add O_ before the object name in the CC folder
The first row in the object .inc file must include the functions,subs and properties of the custom object
in uppercase.starting with a semicolon and one between every entry.
i.e ';TITLE;STARTFOLDER;EXECUTE

If you want to add your own commands the Function/Object name inside the .inc file must be in uppercase
to get anything to work.

Feedback and suggestions can be done at the Hotbasic forum or to my email fredrik at fnoware.st

Link to the download page

Custom Command Optimizer v.2.1
Copyright(C) fnoware 2011
Fredrik at fnoware.se

HotBasic(tm) is Copyrighted by James J Keene PhD.
www.hotbasic.org