View Single Post
  #2  
Old 03-10-2009, 12:38 PM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Quote:
Is there a way to either:
1. Run a script on all tabs.
2. Modify a script to run a script on each tab?
It is possible to either run a separate script in all tabs, or to run a single script that acts on all tabs.

Quote:
The problem is that all commands are run before moving to the next tab.
Something like a WaitForString could cause this behavior, but I'd need to see your script to know what's causing the script to wait at each tab.

Here is an example script that sends a command to multiple tabs.
Code:
# $language = "VBScript"
# $interface = "1.0"

' Example script showing how to send commands to multiple tabs

Option Explicit

Sub Main()

    Dim tab, index, nTabCount
  
    nTabCount = crt.GetTabCount()
    
    for index = 1 to nTabCount
        set tab = crt.GetTab(index)
        tab.activate
        tab.screen.send "ping 192.168.0.131" & vbcr
    next

End Sub
Does this example help?

If the example above doesn't help could you send your script to support@vandyke.com with a subject "Forum thread 3478 attn Mike"?
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote