VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Example: Color Scheme Scripting (https://forums.vandyke.com/showthread.php?t=12243)

jdev 02-05-2016 04:59 PM

Example: Color Scheme Scripting
 
17 Attachment(s)
https://s.ytimg.com/yts/img/favicon-vfl8qSV2F.ico Watch the video: Color Schemes and ANSI Color Palettes https://s.ytimg.com/yts/img/favicon-vfl8qSV2F.ico
Consider the following scenarios...
  • Sharing a configuration with team members and want a quick way to get at your preferred colors?
  • Or, do you just want to have your color schemes automatically rotate through each time you connect in order to avoid the monotony of the same view?
  • Or, do you simply want to quickly cycle through all available color schemes in rapid succession to see which one you prefer most?
Whatever your need, these examples demonstrate how you can select pre-defined color schemes from within a SecureCRT script.

Two different examples are available:
SetColorScheme.py
Given a value that matches the name of an existing color scheme in SecureCRT, this script changes the color scheme in the current open session to match that color scheme provided. Name that scheme, press the button, and it's yours. SetColorScheme.py.txt is available for downloading below.

ColorSchemeAutoRotation.py
Each time this script is run, it rotates your session color scheme setting to the next color scheme defined in SecureCRT's global color scheme list. Use it as a Logon Script to automatically cycle through your color schemes each time you connect. Boredom prevention, perhaps? Nope! It's a 5x click-reduction efficiency increase. ColorSchemeAutoRotation.py.txt is available for downloading below.
Update: 13 Oct, 2017. Script updated to support new color scheme mechanism introduced in 8.3.x versions of SecureCRT. This updated version of the script should work in both older and newer versions, but if you'd like access to the older method, it's attached below as "ColorSchemeAutoRotation-8.1.x-and-earlier.py.txt"


Consider mapping SecureCRT button bar buttons to run these scripts, as demonstrated in this video.

"Happiness is a nice, easy-on-the-eyes color scheme."

Here's a demonstration of the new color schemes now available in SecureCRT 8.3:

Birds Of Paradise
https://forums.vandyke.com/attachmen...achmentid=1428

Chalkboard
https://forums.vandyke.com/attachmen...achmentid=1429

Ciapre
https://forums.vandyke.com/attachmen...achmentid=1430

Dark Pastel
https://forums.vandyke.com/attachmen...achmentid=1431

Desert
https://forums.vandyke.com/attachmen...achmentid=1432

Espresso
https://forums.vandyke.com/attachmen...achmentid=1433

Idletoes
https://forums.vandyke.com/attachmen...achmentid=1434

Invisibone
https://forums.vandyke.com/attachmen...achmentid=1435

Novel
https://forums.vandyke.com/attachmen...achmentid=1436

Solarized Darcula
https://forums.vandyke.com/attachmen...achmentid=1437

Solarized Dark
https://forums.vandyke.com/attachmen...achmentid=1438

Solarized Light
https://forums.vandyke.com/attachmen...achmentid=1439

Tomorrow
https://forums.vandyke.com/attachmen...achmentid=1440

Zenburn
https://forums.vandyke.com/attachmen...achmentid=1441


--Jake


All times are GMT -6. The time now is 08:36 PM.