Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 2 of 10

TT Advantage Programmer's Guide, pages 11 to 20

Pages 11 to 20 of 92

The original document is the PDF (976 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the HHP TT3100 and Welch Allyn TT3100

Page 11

Type Program

Item

Description

Location

Creates the TT Advantage Assistant entry in the VB Addin.ini file. Copies the TT Advantage Templates to the VB Templates directory. This program can be run at any time.

Note: All template files copy automatically to the VB program template directory.

1-5

Page 12

1-6

Page 13

Developer Environment 2

Developer Environment

TT Advantage leverages the powerful Visual Basic facilities to provide a programming environment for generating applications that incorporate TT3100 Series terminals. Note: Familiarity with Visual Basic is recommended before attempting to use TT Advantage. All Visual Basic applications, including TT Advantage applications, take the form of projects. A project is the master file for an application. It can contain three other files: a file containing forms, a file containing modules and a file containing classes. A TT Advantage project can be started in one of two modes: VB or Script.

Starting TT Advantage Projects TO START BUILDING A NEW TT ADVANTAGE PROJECT: 1. In Visual Basic, open a blank project. 2. From the Add-Ins menu, select the Add-in Manager, double click on the Hand Held Products TT Advantage Assistant then click OK. The TT Advantage Assistant appears. 3. Select one of the two TT Advantage modes available from TT Advantage Message box: Visual Basic EXE Mode or Script Mode. Double-click the forms folder in the Project window. The Forms folder opens. 4. Double-click padStart form. The padStart form appears in the Designer window. All projects begin with the padStart form. TO CONTINUE AN EXISTING TT ADVANTAGE PROJECT: 1. In Visual Basic click on the File menu and select Open. The Open message box appears. 2. Select the file from the list and click OK. The file opens. 3. From the Add-Ins menu, double click on the Hand Held Products TT Advantage Assistant. The TT Advantage Assistant appears. Note: It is not necessary to activate the TT Advantage Assistant when opening an existing VB mode project.

2-1

Page 14

The TT Advantage Project Window

Assistant Display button. If the TT Advantage Assistant tool window has been closed, open it by clicking on the red button

Visual Basic Toolbox Form Designer

2-2

TT Advantage Assistant tool window is dockable and can be placed where convenient. When first activated, TT Advantage appears in the upper left of the form designer.

Page 15

The TT Advantage Assistant The TT Advantage Assistant takes two different forms depending on the operating mode as shown below. VB MODE

About TT Advantage Button Status Line Clear Message Box Button Message Window Check Box for Message Window

SCRIPT MODE

Mode Indicator Put Script on Device Button List All Labels Button Modify Control Button

2-3

Page 16

The Controls on TT Advantage Assistant The controls and indicators needed to manipulate TT Advantage Assistant capabilities are the following: About Button The About button works in both modes and when clicked, calls the About TT Advantage message box. The message box shows the version number of TT Advantage and presents a button that calls the Microsoft System Information message box. Mode Indicator The Mode Indicator shows the mode (either Script or VB) in which the TT Advantage Assistant is working. (See Programming Modes Overview, page 2-7.) Status Line The Status line shows process steps that TT Advantage is taking as they are occurring. Check Box The check box toggles the status line and error sound on and off. Message Window The Message window summarizes the results of processes, such as compilation errors or the successful loading of a script. Clear Button The button erases the Message Window and Status line. List All Labels Button The List All Labels Button only appears in the Script mode. It lists user-defined subroutines and interactive point of sale screens in the Message Window. Put Script on Device Button The Put Script on Device Button only appears in the Script mode. This button loads compiled scripts onto the TT3100 Series terminal. Modify Control Button The Modify Control Button appears in both modes Script and VB mode. It changes the appearance of a limited number of controls from visible to transparent.

2-4

Page 17

Controls for TT Advantage Forms TT Advantage adds two special controls to the Toolbox: Signature Capture (SigControl) and Magnetic Stripe Reader (MSRControl). Note: Only a selected subset of Visual Basic controls displays and works on TT3100 Series terminals. See Script Mode on page 3-1 and VB Mode on page 4-1.

Visual Basic Toolbox

Signature Capture Control (SigControl) allows developers to put a signature capture box on TT3100 Series terminals and handle signature information.

Magnetic Stripe Reader Control (MSRControl) activates magnetic stripe reader to capture credit or debit card information.

TT Advantage Forms The special forms that TT Advantage adds to Visual Basic behave similarly to other Visual Basic forms but with some important differences. All TT Advantage projects start with a padStart form. Additional forms can be added as needed.

Adding TT Advantage Forms Do the following to add a TT Advantage form. 1. Starting from an open TT Advantage project, click on the Project menu. The Project menu appears. 2. Select Add Forms from the Project menu. The Add Forms message box appears.

2-5

Page 18

3. Double-click on the TT Advantage form in the Add Forms window. The TT Advantage form appears in the Designer Window. 4. Name the new form. All TT Advantage forms need to start with the word pad, such as padSignature or padSwipe.

Pad Form Events Each TT Advantage mode has an associated code window. The code window for the VB mode form contains four subroutines while the code window for Script mode form contains two subroutines. The subroutines are listed in the following table: VB Mode Subroutines

Script Mode Subroutines

ScreenInitialize()

ScreenInitialize()

AfterScreenDraw()

AfterScreenDraw()

GoBack() GoNext() TT Advantage executes these routines automatically. TT Advantage executes any code added to the routines. For example: if code is placed inside the AfterScreenDraw routine, it executes after all the controls on the interactive point of sale screen are displayed. See the comments in the TT Advantage Form code window for detailed information.

Pinpad form This PinPad form only supports Script mode. This screen is used to get the PIN from the user and saves the PIN in the PIN variable. The user does not need to define the PIN variable; TT Advantage adds it. This form code consists of three routines: Script Mode Subroutines

ScreenInitialize() cmdCancel_Click() cmdEnter_Click() TT Advantage executes these routines automatically. TT Advantage executes any code added to the routines. TT Advantage automatically adds the coding needed to save the PIN. As an example: if Tool.SCRIPT.GotoScreen padScreen command is added to the cmdEnter_Click sub, TT Advantage saves the PIN and goes to padScreen.

Note: If the property Tag of the fldPIN text box is set to “dukpt”, PinPad uses the dukpt encryption method. If the property is blank, PinPad uses Master Session encryption method.

2-6

Page 19

TT Advantage Form Properties The TT Advantage pad form generates an optimum display on TT3100 Series terminals. Most changes to properties of TT Advantage forms have no effect on the resulting screen display. Only five form properties modify the resulting screen. Of the five properties, only two should be changed during application development: the Caption property and the Name property. Do not change the other three properties: ScaleMode, WidthMode and HeightMode. Changes to these properties degrade screen display appearance and function.

Programming Modes Overview Applications written for TT3100 Series terminals are developed with TT Advantage in one of two modes: Script or VB. These applications are event driven. TT Advantage creates event driven software for TT3100 Series terminals as scripts or Visual Basic executables. Both modes have unique advantages depending upon the TT3100 Series host and existing software.

Comparison of TT Advantage Modes Intelligence built into TT3100 Series terminals causes TT Advantage derived applications to fall naturally into two categories: applications consisting of internal scripts that control TT3100 Series terminal functions, and applications in which external programs control TT3100 Series terminal functions. Both types of applications can be developed with TT Advantage. Applications residing on TT3100 Series terminals are written in TT Advantage Script mode. Applications residing on an external host are written in VB mode.

Deciding Which TT Advantage Mode to Use Each of the two TT Advantage modes addresses an important class of applications for TT3100 Series terminals. Script Mode Developers integrating TT3100 Series terminals into legacy software and hardware systems should use the TT Advantage scripting mode. Sensitive systems such as financial transaction networks need to be thoroughly tested after they are modified. The less such code is disturbed, the more easily it can be readied for re-use. By inserting script activating “hooks” into legacy host software, interactive point of sale functionality can be added to a transaction system with light modifications to existing software. Light coding changes mean efficient upgrades of legacy transaction systems. VB Mode Developers integrating TT3100 Series terminals into systems that consist of a Windows Operating System and an application written in Visual Basic should use TT Advantage VB mode. VB mode can also be used as a tool to create proof of concept demonstrations.

2-7

Page 20

2-8