Example
#include <stdio.h> #include <conio.h> #include "mmsultra.h"
void main(void)
{
int iInput = 0; int iNum = 0;
kbdSetNormal();
kbdSetFunct();
printf("Press 5 to print\nlabels\n"); iInput = _getch();
if (iInput == 0x00)
{
kbdClrFunct(); iInput = _getch(); if (iInput == 0x3F)
{
// Prompted input
// # of labels to print
// Set Normal mode
// Set Function Key mode // Get input (F5)
// Get # of labels
printf("How many labels do\nyou need?"); iNum = _getch();
printf("\nPrinting %c labels...", iNum);
/* Branch to printing routine */
}
}
}