View Single Post
Old 02-08-2012, 04:12 PM
rtb rtb is offline
VanDyke Technical Support
Join Date: Aug 2008
Posts: 4,306
Hi Wim,

It seems like you should be able accomplish your goal using a few methods from the Screen object.

You could use the Send() method to send your command. You could then use the WaitForString() method to wait for the command including the carriage return. You could finally use the ReadString() method to get the data from the point when the device prompt is found to the beginning of the output after the command was found by WaitForString().

These methods are all documented in Help. The chapter would be Scripting / Script Objects Reference / Screen Object. The use of these methods is also discussed in the forums and chapters 4 and 5 in the scripting manual in detail.

Does this help you get started writing your script?

VanDyke Software
Technical Support
Reply With Quote