Automatic pushbutton processing: The user wants a pushbutton to be pressed automatically when the screen starts. Can this be done via GuiXT?

Yes, this is possible with the command

Enter "xxxxx"

in your GuiXT script. But you need to find an appropriate condition

if ...

   Enter ...

endif

that 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.

A suitable condition could be

if Q[Page=....]

  Enter ...

endif

if the "Enter" changes the tab, or

if not F[some field name]

  Enter ...

endif

if the field F[some field name] becomes visible after the "Enter" only.

A different approach is to use the system variable V[_transactionid] that changes each time the user enters the transaction again. Example:

if not V[_transactionid=&V[previous_transactionid]]

  Set V[previous_transactionid]  "&V[_transactionid]"

  Enter ...

endif