PerryWerneck / pw3270

3270 Emulator for gtk
https://softwarepublico.gov.br/social/pw3270/
GNU Lesser General Public License v3.0
58 stars 12 forks source link

Macro support #47

Open bmnascimento opened 1 year ago

bmnascimento commented 1 year ago

The Problem

I have used other terminals that supported macros for automatically pressing a sequence of keys which is useful for automating repetitive operations. Also very useful as a way of "auto-login".

The Solution

A screen where it would be possible to enter in a textbox a sequence of operations, and where it would allow for the macro to be activated automatically at startup. For example, one could enter the text:

Key(A) Key(Enter) Key(M) Key(Y) Key(L) Key(O) Key(G) Key(I) Key(N) Key(Enter) WaitForScreenLoad() Key(Enter)

And when the terminal connects, this sequence of actions would be performed automatically. One example of an open source terminal emulator that has this feature is wx3270.

The Alternatives

Maybe there is a way already to do macros using a script language. But I think that having it implemented in the program itself would be very useful.