Question
· Apr 4, 2017

Extended Escape Sequences: Terminal scripts: question with scripting over Pop-Out boxes in the Terminal.

Hello,

I have been involved with using terminal scripts lately (I use GE Centricity Business), that usually do not go beyond 'send:' and 'wait for:' commands.  Notwithstanding, I have been stuck with the message boxes since the script recorder does not record over this whenever I need to click 'Yes' in a given message box prompt which aggressively stops my scripts/macros from continuing.  I know that this commands are labeled 'Extended Escape Sequences', but I have been looking all over at the Intersystems document repository with no luck in finding anything of the sort.  I have, however, found documentation on the basic commands of using regular terminal scripts in the following address: 'http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...'.  In any case, could someone help out in providing any feedback that could enable me to use some sort of terminal script or extended escape sequence command, for that matter, that could help me out in scripting a mouse click within the terminal?  

Discussion (7)0
Log in or sign up to continue

If you are scripting you may want to consider setting your process as a "Batch User".  This is found in IDX DBMS system settings.   If you go down this path in your script code 

1. your process will not be sent any extended escape sequences but you will instead be sent terminal prompts which your script can react to

2. If your script is on a dbms form/selector you can use commands to interact with the dbms form/selector such as

|FILE|

|QUIT|

etc.  Those may not be the exact commands from my memory but I believe the extended help for the Batch Users field will show you all of the commands you script can send.

My method for dealing with the pop-up boxes is to not deal with them at all.

In IDXTerm, under the Edit menu select 'User Settings'.  In the window that appears change the 'Terminal Type' from "IDXTerm" to "Plain".  Click Save and Apply and start up a new session for good measure.

Changing this setting will prevent IDXTerm from responding to the extended control character sequences.  Anything that would have been displayed in a pop-up window will now be displayed in the terminal area itself, which will make it an easy target of the IDXTerm scripting language.

My experience has been that changing this setting makes IDXTerm scripting infinitely more useful for repetitive tasks.

Best of luck!

John