VanDyke Software Forums

VanDyke Software Forums (
-   Scripting (
-   -   How to write to Address Bar (

ShawnVW 05-24-2016 09:54 AM

How to write to Address Bar
Is it possible to print a string to the Address bar, the way you can to the Status bar?

jjh 05-24-2016 05:11 PM

Hi ShawnVW.

Can you clarify what you mean by the address bar?

What problem are you trying to solve?



ShawnVW 05-25-2016 10:44 AM

Currently I'm using the Status Bar as a kind of debugging tool by displaying things like the record currently being processed. I'd like to have more than one place to display such information.

I know that SecureCRT has an "AddressBar" item. I assume this refers to the bar above the Menu Bar, which currently says "OurRemoteProgram - SecureCRT".

rcomito 05-25-2016 11:13 AM

Hi Shawn - The bar below the menu items can be written to with:


crt.Window.Caption =
followed by any valid string.

Rick Comito

jdev 05-25-2016 11:50 AM

The area of the Window that usually reads "not connected - SecureCRT" when SecureCRT is first launched is called the "title bar".

It can be changed by using the crt.Window.Caption property as mentioned.

In addition, each tab's label/caption can be changed by using its corresponding Tab object's Caption property as well.

For example, this code will prepend an index to each tab label in your SecureCRT window:

For i = 1 to crt.GetTabCount
    strPrefix = "[" & i & "] "
    Set objTab = crt.GetTab(i)
    If Left(objTab.Caption, Len(strPrefix)) <> strPrefix Then
        objTab.Caption = strPrefix & objTab.Caption
    End If

Note also, however, that setting a tab's caption also affects the SecureCRT Title bar (which reflects the caption of the active tab).

Does this information help to answer your questions?


ShawnVW 05-25-2016 06:42 PM


Originally Posted by jdev (Post 45861)

Does this information help to answer your questions?

Well I don't know how to get tabs in my windows, but other than that, yes! Thanks to you both!

jdev 05-26-2016 10:26 AM

Current versions of SecureCRT support opening multiple connections in tabs within the same SecureCRT window.

To open a new connection in a tab, simply enable the Open in a tab option on the Quick Connect/Connect dialog or right-click in the Session Manager and choose Open Sessions in a Tab/Tile.

If you want to open a new connection into a new tab from within a script, you simply use the crt.Session.ConnectInTab() method. You can find out more about this method by consulting the SecureCRT help (main "Help" pull-down menu in SecureCRT, then "Help Topics") and also by reading the SecureCRT Scripting Guide.


All times are GMT -6. The time now is 12:51 AM.