Please enable JavaScript to view this site.

ASQL Reference

Navigation: » No topics above this level «

Configuring Print Screen

Scroll Prev Top Next More

Although Print Screen is customizable (and easily removed), a default behavior and place on the menu is set to reduce the confusion that has historically surrounded the print screen function.

The behavior of the print screen utility is determined by a configuration file, bas:aprntscrn.cfg; see the following topic Sample APRNTSCRN.CFG.

That sample aprntscrn.cfg configuration file is included in the installation/update packages, but will not overwrite an existing copy.

The APRNTSCRN.SBX file (and its source, aprntscrn.bp) will be supplied (and overwritten) during installation/update. So if you want to modify the default print screen behavior, you should supply your own SBX and plug its name into the Command= line of the aprntscrn.cfg file.

To remove the item from menu, just comment out (or remove) the Command= line from the aprntscrn.cfg file. To accomplish this for many ATE clients in one step, you can use ATSYNC.LIT in a startup command file to update the individual copies of aprntscrn.cfg from the server. Or, even simpler, just send a command to delete the aprntscrn.cfg file, e.g.

? TAB(-10,AG_WINEXEC);"$DEL %MIAME%\DSK0\007006\APRTNSCRN.CFG";chr(127);

or, using AGCMD:

.AGCMD WINEXEC $DEL %MIAME%\DSK0\007006\APRNTSCRN.CFG

As an alternative to calling an SBX to perform the print screen function, you can specify an arbitrary Windows command line (removing the "SBX:"), e.g.:

[MENU]

Command=super-print-screen.exe -arg1 -arg2 -arg3

 

Note that the aprntscrn.cfg file is only processed by the menu subsystem the first time you click on the menu bar. So removing it or changing the Command= line after the menu has already been accessed will have no further effect until you close and re-launch the session.

2011 May, A-Shell 6.0.1215:  Print screen function added to A-Shell.