View Single Post
Old 10-12-2018, 01:31 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,099
Originally Posted by fplante View Post
I am looking for a solution to be sent data with the name of tab... not with the number of tab to be sure i send the data to the right equipement.

exemple: Set objCurrentTab = crt.GetTab ("TAB NAME")
SecureCRT doesn't yet have a native script API for GetTabByName(). I've added a feature request on your behalf.

However, you can write a wrapper function that iterates over all existing tabs and compares each tab's caption with a specified string value (name).

In the script examples "sticky", you'll see an entry there named "Get Tab By Name". The "Get Tab By Name" example will show you how to accomplish your objective.

Does this get you closer to where you'd like to be?

Jake Devenport
VanDyke Software
Technical Support
YouTube Channel:
Reply With Quote