从MainFrame屏幕读取数据 [英] Reading Data From a MainFrame Screen

查看:84
本文介绍了从MainFrame屏幕读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想知道是否有办法可以从静态大型机屏幕上读取/捕获某些特定数据。 />


我的意思是我可以在某个特定位置(像素)读取数据。



任何帮助将不胜感激。



-

谢谢和问候,

Anurag Malani

Hi All,

I would like to know if there is a way by which i can read/capture some specific data from a static mainframe screen.

I mean can i read data at some specific position (pixel).

Any help will be greatly appreciated.

--
Thanks & Regards,
Anurag Malani

推荐答案

你应该可以直接获取屏幕上的字符。



应该有一个大型机屏幕软件的界面您正在使用。这可能是DDE或WinHLLAPI。要有机会这样做,首先需要确定您正在使用的屏幕模拟器软件,因为有许多不同的软件。然后获取描述该仿真器接口的编程指南或类似手册。尝试与负责管理大型机的技术支持人员交谈 - 也许他们可能会提供帮助。如果你真的很幸运,屏幕模拟器上的帮助可能会提供一些线索。



如果证明不可能,你可以尝试从你的模拟器发送ctrl A和控制C程序,然后看看你在剪贴板上得到了什么。首先手动尝试,看它是否得到合理的数据。大多数大型机屏幕都有一个名为表单模式的状态,这意味着您只能在表单框中获取数据,这可能会使事情变得复杂。但是,通常有一些控制命令可以将屏幕翻转进入和退出表单模式,您可能需要使用它来获得所需的内容。看一下模拟器菜单,它可能会告诉你它是什么。



如果你得到数据,你不可避免地会有一些奇怪的字符在那里不想要。这些是粗体和颜色等的屏幕控制字符。您可能想要将它们剥离出来,您可能需要用空格替换它们以保持格式化。



抱歉,这不是一个简单的答案,但你需要做更多的研究来缩小问题范围。
You should be able to get the characters that are on the screen directly.

There ought to be an interface to the mainframe screen software you are using. This would probably be either DDE or WinHLLAPI. To have any chance of doing this you first need to identify the screen emulator software you are using as there are lots of different ones. Then get a programming guide or similar manual that describes the interface for that emulator. Try talking to the tech support people who look after the mainframe- perhaps they might help. If you are really lucky the help on the screen emulator might give some clues.

If that proves impossible you could try sending ctrl A and control C to the emulator from your program and then see what you get on the clipboard. Try it manually first to see if it gets sensible data. Most mainframe screens have a state called "forms mode" that means you only get the data in the forms boxes and this might complicate things. However there are usually control commands that will flip the screen in and out of forms mode that you might need to use to get what you want. Have a look on the emulators menus it might tell you what it is.

If and when you get the data there will inevitably be some strange characters in there that you don't want. These are screen control characters for bold and colors etc. You probably want to strip those out and you may need to replace them by spaces to keep the formatting.

Sorry its not a simple answer but you do need to do a bit more research to narrow down the problem.


这篇关于从MainFrame屏幕读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆