Re: Question about connection and sending with wod - WeOnlyDo Discussion board

Re: Question about connection and sending with wod (General questions)

by wodDamir, Saturday, May 26, 2007, 15:05 (6391 days ago) @ Michael Helsel

Hi Michael,

Instead of using Sleep, why don't you try with WaitFor Method?

You can insert WaitFor between sending commands. That way you would be certain that the specified prompt is received (and thus command was executed), and you can send the next command.

That way you could also wait for --More-- and decide what to do when you receive it.

As for the prompt property, did you try using regex expressions? Maybe you could customize it so that the PromptReceived Event is triggered in both cases. If not, you could check the received data for --More-- string.

Hope I helped.

Regards,
Damba


Complete thread: