We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

interface honeywell scanner to mainframe attachmate screen

tremak
tremak asked
on
Medium Priority
856 Views
Last Modified: 2012-05-11
I need to be able to have attachmate intercept input from a honeywell 2d bar code scanner, parse the data from the scanner and send the data to a mainframe attachmate session.

I'm hesitant to use an input box for this as I have to let the user also manually type in data from a keyboard.

Anyone done anything like this before and if so, please send examples.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2014

Commented:
Does the scanner have any type of programming API, say in VBS?

If so, you should be able to wrint a VBS scritp that grabs the input from the scanner and input the data into the emulator.

Author

Commented:
Scanner has no programming capabilities.
CERTIFIED EXPERT
Top Expert 2014

Commented:
Well, if there is no programming interface to the scanner there is nothing that Attachmate can do to intercept it.

The best you could try is have the scanner put the data into a text file, I assume it can do that, and then write an Attachment VBS scritp and read the file and parse the file.

Author

Commented:
There is something called session monitor in Attachmate that is supposed to be a triggering mechanism. If I could figure out how to set that up, I could have the scanner send a special function key to the mainframe that Attachmate would recognize as the trigger and possible run a script to parse the data?
CERTIFIED EXPERT
Top Expert 2014

Commented:
Umm, just how are you going to have the scanner send anything to the emulator if it has no programming interface?

I don't think session monitor will help. IIRC (it has been a LONG time since I have used Attachmate) that was to show you the status of sessions.

However, you can trigger Attachmate scripts from other programs running on the same computer.

Author

Commented:
The scanner has the ability to send data thru a USB connection and act as a keyboard wedge

Author

Commented:
Does anyone know if Extra! attachmate 2000 has the ability to intercept data being sent to the screen? If that were the case, I could have the scanner send special characters at the beginning of the data stream and have attachmate interrogate what was being sent to the screen and intercept when necessary.
CERTIFIED EXPERT
Top Expert 2014

Commented:
No it does not. If somehow you could have the scanner trigger a program, then you can setup an Attachmate session that automatically executes a script.

However, the scanner would need to have the data put into a file that the Attachmate script could then read.

Author

Commented:
How about this?

Can I set something up in Attachmate that detects a certain function key and execute a macro if detected? If this is possible, I could have the scanner send certain function key that attachmate would detect, kick off a macro to accept the data from the scanner, parse the data and populate the mainframe screen.
CERTIFIED EXPERT
Top Expert 2014

Commented:
Attachmate does not have any hooks low into the OS that would alllow to see keys pressed unless it is the window that has focus.  So, if Attachmate is the window that has focus, yes.  If some other window has focus, no.

However, the scanner still needs to feed the data to a file and the macro must then read that file.

Author

Commented:
The window would have focus, so how would I detect a key pressed? Do I have to have a continuous loop that does a waitforkeys ?
CERTIFIED EXPERT
Top Expert 2014

Commented:
You would not, Attachmate would and then you would configure Attachmate to trigger a script.

IIRC you can do this through the keyboard mapping function.

Author

Commented:
How would I configure Attachmate to trigger a script and what does IIRC mean?
CERTIFIED EXPERT
Top Expert 2014
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.