• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 803
  • Last Modified:

interface honeywell scanner to mainframe attachmate screen

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.
0
tremak
Asked:
tremak
  • 7
  • 7
1 Solution
 
giltjrCommented:
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.
0
 
tremakAuthor Commented:
Scanner has no programming capabilities.
0
 
giltjrCommented:
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.
0
[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

 
tremakAuthor 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?
0
 
giltjrCommented:
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.

0
 
tremakAuthor Commented:
The scanner has the ability to send data thru a USB connection and act as a keyboard wedge
0
 
tremakAuthor 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.
0
 
giltjrCommented:
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.
0
 
tremakAuthor 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.
0
 
giltjrCommented:
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.

0
 
tremakAuthor 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 ?
0
 
giltjrCommented:
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.
0
 
tremakAuthor Commented:
How would I configure Attachmate to trigger a script and what does IIRC mean?
0
 
giltjrCommented:
IIRC = If I Remember Correctly

I don't have access to Attachmate any more, but IIRC you can define a key or key combination to execute a macros.  This would be in the keyboard defintion utility.  This is accessed via one of the menu option on the tool bar.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 7
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now