this is possible with the command
your GuiXT script. But you need to find an appropriate condition
is not fullfilled until the "Enter" is processed. Otherwise the Enter
will be executed again and again and the screen is blocked. If this happens
during your tests, click the "Visible" button in GuiXT window to stop
further "Enter" processing.
suitable condition could be
"Enter" changes the tab, or
F[some field name]
field F[some field name] becomes visible after the "Enter" only.
different approach is to use the system variable V[_transactionid] that changes
each time the user enters the transaction again. Example:
Set V[previous_transactionid] "&V[_transactionid]"