beautypg.com

Paxar Gold 6037EX User Manual

Page 46

background image

4-10 Programmer’s Manual

Example

#include

#include

#include "mmsultra.h"

void main(void)

{

int iInput = 0;

//

Prompted

input

int iNum = 0;

// # of labels to print

kbdSetNormal();

//

Set

Normal

mode

kbdSetFunct();

// Set Function Key mode

printf("Press 5 to print\nlabels\n"); // Get input (F5)

iInput = _getch();

if (iInput == 0x00)

{

kbdClrFunct();

iInput = _getch();

if (iInput == 0x3F)

{

// Get # of labels

printf("How many labels do\nyou need?");

iNum = _getch();

printf("\nPrinting %c labels...", iNum);

/* Branch to printing routine */

}

}

}