Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-03-2014, 03:44 PM
tomeverett tomeverett is offline
Registered User
 
Join Date: Jan 2012
Posts: 6
Output with continuation

I am using "szResult = objTab.Screen.ReadString(szPrompt)" to capture output until a prompt is detected but my connection uses "--More--" to paginate output such that my script fails to see the prompt until I hit the space bar a number of times.
How can I automate a loop around "szResult = objTab.Screen.ReadString(szPrompt)" to send as many spaces as needed to get to the prompt?
Reply With Quote
  #2  
Old 03-03-2014, 03:53 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,633
Hello tomeverett,

The answer can be found in the Scripting Manual available here.

Specifically you will want to look at the script example in the section titled Using MatchIndex to Determine Which String
ReadString() Detected
(Section 4.3).
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 03-03-2014, 04:20 PM
tomeverett tomeverett is offline
Registered User
 
Join Date: Jan 2012
Posts: 6
How did I miss that one?
Works perfect, thanks a bunch.
Reply With Quote
Reply

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 08:16 PM.