Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 07-31-2020, 04:08 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,482
Hi David,

I am not sure how it's used in your script, but what about if you "wait for" just ## characters using VBScript's Left() function? Is the command unique enough that would work?

If you want to calculate an exact amount of columns, somewhere in your script where you expect to be at a prompt, add this line:
    nCmdCols = g_objNewTab.Screen.Columns - g_objNewTab.Screen.CurrentColumn
That should calculate the exact columns left over for the command. Then, if you need to store it in a different variable:
    strFirstLine = Left(strCommand, nCmdCols)
Then you would "wait for" strFirstLine.

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote

example script

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 02:33 PM.