How to send F1 key to 3270 terminal emulator using Microsoft HIS

一笑奈何 提交于 2021-02-11 15:45:50

问题


I'm using Microsoft Host Integration Server (HIS 2006) to connect to 3270 IBM Mainframe terminal to send keys and get responses programmatically. But I am unable to send the F1 key.

If I am using the HIS server 3270 client manually pressing the F1 key will show me the next page of the response. After recording the manual process in the client I found out it sends @1 as a key programmatically as shown below. But it is not working when I send the key programmatically. Here is the code snippet (I’m using the classes in Microsoft.HostIntegration.SNA.Session dll)

.. SessionDisplay handler = new SessionDisplay(); .... handler.SendKey("@1"); Does anyone know how to send F1 key programmatically using Microsoft HIS 2006 or which key to send to go from page to page in 3270 terminal emulator programmatically.


回答1:


Setting the cursor position before sending the F1 key solved the problem



来源:https://stackoverflow.com/questions/4433099/how-to-send-f1-key-to-3270-terminal-emulator-using-microsoft-his

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!