Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-13-2021, 05:36 AM
fabb fabb is offline
Registered User
 
Join Date: May 2021
Posts: 5
Caption of active tab

Hello,

Since I upgraded to latest version of SecureCRT (9.0.1), the caption of the active tab is not changed any more by my script.

I open a ssh session (File->Connect in tab), and then I run a VBS script.

When the following line is executed
Code:
crt.window.Caption = hostname
with my old SecureCRT versions, the caption of the current tab was changed with the content of the 'hostname' varaible.

With my new SecureCRT version, the caption of SecureCRT windows is changed with the content of the 'hostname' varaible
(and the caption of the current tab is the propmt of the ssh session).

I tried several things but I do not manage to change the caption of the active tab.

Any idea ?

Thank you!

Below an extract of the script:
Code:
# $language = "VBScript"
# $interface = "1.0"

Sub main

crt.Screen.Synchronous = True

...

hostname = ......

...

crt.window.Caption = hostname

crt.Screen.Synchronous = False

End Sub

Last edited by cboyack; 05-13-2021 at 07:08 AM. Reason: Please use [CODE] and [/CODE] tags to denote areas of code
Reply With Quote
 

Tags
caption , tab , window

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:03 AM.