VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Example: Save Screen Text to a File (https://forums.vandyke.com/showthread.php?t=11824)

jdev 12-16-2014 03:15 PM

Example: Save Screen Text to a File
 
1 Attachment(s)
This example script illustrates how to take text in the terminal screen (or scrollback buffer) within SecureCRT and save it to a file.

Three script "modes" are supported: Selection, Screen, and Scrollback (which means save text from both screen and the scrollback buffer)

The script's "mode" is controlled by the presence of a command line argument named /Mode. For example: /Mode:Screen
This means that you can map different buttons on SecureCRT's button bar to run the same script, and simply modify the script's arguments to get different behavior.

Comments within the script code explain script behavior in more detail.

--Jake


All times are GMT -6. The time now is 04:27 AM.