pmattes / x3270

Family of IBM 3270 emulators
46 stars 18 forks source link

Handle X protected #52

Open FWDQK opened 1 year ago

FWDQK commented 1 year ago

image

If any invalid key gets hit, it shows as X Protected. How can we come out of it? In as400, we used to click control to reset and make screen active.

pmattes commented 1 year ago

Press the Reset key: https://x3270.miraheze.org/wiki/Reset()_action

On wc3270, Reset() is mapped to Alt-r.

FWDQK commented 1 year ago

Press the Reset key: https://x3270.miraheze.org/wiki/Reset()_action

On wc3270, Reset() is mapped to Alt-r.

Hi, Its working manually. But via script how we can pass both keys? I tried via Press Keys/Press Combinations/Send/Execute Command Reset()

pmattes commented 1 year ago

Reset() is a wc3270 action. It is invoked when you press Alt-r, or can be passed to the wc3270 scripting interface via a socket. You must be using some sort of scripting framework that I am not familiar with -- "KeyPress", "Press Combinations", "Send" and "Execute Command" are not part of wc3270.

FWDQK commented 1 year ago

Reset() is a wc3270 action. It is invoked when you press Alt-r, or can be passed to the wc3270 scripting interface via a socket. You must be using some sort of scripting framework that I am not familiar with -- "KeyPress", "Press Combinations", "Send" and "Execute Command" are not part of wc3270.

I am using robot framework to launch wv3270.

pmattes commented 1 year ago

I have never used Robot Framework, so I don't know the answer off the top of my head. Does this article help? https://stackoverflow.com/questions/32334571/simulate-key-presses-with-robot-framework