View Single Post
  #2  
Old 03-28-2019, 01:26 PM
berdmann berdmann is online now
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 319
Hi Reno,

Please refer to the following example:

Code:
# $language = "VBScript"
# $interface = "1.0"

Do
    strHostPrompt = "[root@myhostnameadmin]#"
    ' We're calling a wrapper function we created to make
    ' it easier to do case-insensitive waits
    WaitForStringCI strHostPrompt
    MsgBox "We found it... moving on..."
Loop

Function WaitForStringCI(strData)
    ' This is a wrapper function that makes case-insensitive
    ' calls to WaitForString much easier...
    '
    ' We're calling WaitForString with the bCaseInsensitive
    ' True|False flag which requires a timeout param. Since
    ' we don't really want this to time out, we'll use an
    ' exceptionally large number of seconds (approximately 7.6
    ' days)
    WaitForStringCI = _
        crt.Screen.WaitForString(strData, (65535 * 10), True)
End Function
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by bgagnon; 03-28-2019 at 02:01 PM. Reason: typo in approximately
Reply With Quote