#1
|
|||
|
|||
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?
|
#2
|
|||
|
|||
Hi ShawnVW.
Can you clarify what you mean by the address bar? What problem are you trying to solve? Thanks JJH |
#3
|
|||
|
|||
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". |
#4
|
|||
|
|||
Hi Shawn - The bar below the menu items can be written to with:
Code:
crt.Window.Caption = Rick Comito |
#5
|
||||
|
||||
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: Code:
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 Next Does this information help to answer your questions? --Jake
__________________
Jake Devenport VanDyke Software Technical Support YouTube Channel: https://www.youtube.com/vandykesoftware Email: support@vandyke.com Web: https://www.vandyke.com/support |
#6
|
|||
|
|||
Well I don't know how to get tabs in my windows, but other than that, yes! Thanks to you both!
|
#7
|
||||
|
||||
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. --Jake
__________________
Jake Devenport VanDyke Software Technical Support YouTube Channel: https://www.youtube.com/vandykesoftware Email: support@vandyke.com Web: https://www.vandyke.com/support |
![]() |
Tags |
vbscript |
Thread Tools | |
Display Modes | Rate This Thread |
|
|