Section 5. Example Applications
51
8. Close the PowerScript Painter window and answer “Yes” to “Save changes…”.
9. Close the Window Painter window and answer “Yes” to “Save changes…”. At the “Save Window”
dialog box, enter “ole_io” then click “OK”.
10. Open the PowerScript window for the main application and integrate the following commands into the
application. (This demo application prompts the user to read a card. The program will continue to
loop until the “Cancel” button is pushed.)
/////////////////////////////////////////////////////////////////
//
Application to demonstrate use of OLE ActiveX Component
//
//
to interface to Mag-Tek Windows Drivers (MTD).
//
/////////////////////////////////////////////////////////////////
string response
integer result
// Open ActiveX frame window to load the ole_io control.
// This may take a few seconds while the port is opened.
Open (ole_io)
// Include any commands required for your application.
// Specify the number of seconds to wait for card to be read
ole_io.mtd.object.SetTimeOut(120)
// Define the message to be shown on the IntelliPIN to read a card.
// The end of line (~n) must be inserted for driver commands.
ole_io.mtd.object.WriteString("/set msg1 Read a Card~n")
NextCard:
// Request the card to be read.
ole_io.mtd.object.WriteString("/read card~n")
// Wait for the card to be swiped.
response = ole_io.mtd.object.ReadString(250)
// See if the card was read.
if response <> "" then
// Remove “PIN Pad is processing” Display from IntelliPIN
ole_io.mtd.object.WriteString("/display Thank You~n")
// Show the card data in a Message window.
result = MessageBox("Read Card?",response,Exclamation!,OKCancel!)
else
// It was a timeout from the OCX.
// Must cancel the active command if the read was not performed.
result = ole_io.mtd.object.WriteString("/cancel read~n")
//ignore the response to cancel
response = ole_io.mtd.object.ReadString(50)
end if
if result = 1 then
goto NextCard
end if
Summary of Contents for Entuitive 1229L
Page 1: ......
Page 11: ...1 6 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Page 14: ...2 9 Side View Base Bottom View...
Page 43: ...4 38 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Page 54: ...C 49...
Page 55: ...C 50 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Page 59: ...54 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Page 70: ...vii...
Page 71: ...Figure 1 1 USB Swipe Reader viii...
Page 75: ...USB HID Keyboard Emulation Swipe Reader 4...
Page 79: ...USB HID Keyboard Emulation Swipe Reader 8...
Page 81: ...USB HID Keyboard Emulation Swipe Reader 10...
Page 103: ...vi Figure 1 1 Port Powered Swipe Reader...
Page 107: ...Port Powered Swipe Reader 4 Figure 1 3 Dimensions...
Page 111: ...Port Powered Swipe Reader 8...
Page 115: ...Port Powered Swipe Reader 12...
Page 151: ...MagTek Device Drivers for Windows 28...
Page 161: ...MagTek Device Drivers for Windows 38...
Page 175: ...MagTek Device Drivers for Windows 52...
Page 197: ...MagTek Device Drivers for Windows 74...
Page 199: ...MagTek Device Drivers for Windows 76...
Page 201: ...MagTek Device Drivers for Windows 78...
Page 220: ...i Customer Displays 2 by 20 character display USER MANUAL Models LD9000 Series...
Page 249: ......