#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" ö Barcode tester ˆ î-- this routine reads the barcode -- one character at a time -- on keyDown theKey if the hilite of btn "Read codes" then put theKey after fld "Barcodes" else pass keyDown end if end keyDown -- this routine looks for the barcodes end of line character -- in this tester, it just adds a linefeed -- but in a real application, this is where -- you would handle the barcode information -- on rawKeyDown theKey if the hilite of btn "Show raw data" = false then if theKey = 65293 and the hilite of btn "Read codes" then put cr after fld "Barcodes" -- here is where you would handle the complete barcode else pass rawKeyDown end if else put theKey & cr after fld "Barcodes" end if end rawKeyDown w ÜÜÜÜÜÜ ffffff ÿÿÿÿÿÿ white €€€€€€ ¬¬¬¬¬¬ € i g ÐL revstack false U Geneva U Chicago U Chicago @U Geneva Menubar 1 cREVGeneral scriptChecksum ¶ ü>înAA 7