Overview
  Features
  What's new
  General Description
  :. Information
  :. Customize
  :. Protect
  :. Compile
  Advanced Functions
  Registration
  Tutorial
  Tutorial Passwords
  About Natata


Buy now!

:. Advanced Functions .:

Built-in Functions

There are some advanced functions that can help you build more reliable eBooks. The special functions can be included as links on your pages, to activate these functions you must begin the instruction with #DO# after that you can use one of the following functions:

SHOW# displays a messeage in a popup window. Use it to display any message you like.

Usage: #DO#Show#{message}

{message} ->can be any text you like.

Example: #DO#Show#Hello world

----------

OPEN# This instruction will execute any external program.

Usage: #DO#OPEN#{$DRV$}{$WIN$}{program}

$DRV$ -> Current Drive , this variable will be replaced with the drive letter where the eBook is being executed.

$WIN$ -> Windows Drive , this variable will be replaced with the windows drive letter.

{program} ->full path to the program to execute.


Example: #DO#OPEN#c:\WINDOWS\NOTEPAD.EXE

Example: #DO#OPEN#$WIN$\WINDOWS\NOTEPAD.EXE

Example: #DO#OPEN#$DRV$\DATA\EBOOK2.EXE

----------

EXIT# This instruction will close the eBook.

Usage: #DO#EXIT#

----------

FIND# This instruction will open the search Panel.

Usage: #DO#FIND#

---------

TOC1# This instruction will open the Table of contents Panel.

Usage: #DO#TOC1#

---------

PRIN# This instruction to execute the print command.

Usage: #DO#PRIN#


Command line parameters

The eBook can be opened to a specific page using a command line parameter. For example if you want to open your eBook in the contact page you simply execute the following line {ebook.exe contact.html} assuming that the contact.htm page exists in the root directory of the eBook. You can also include the full path to a page, example {ebook.exe files/sub/contact.html}

Usage: ebook.exe {page}

Copyright © 2002-2004 NATATA Software. All rights reserved.