Re: How to execute commands one by one - WeOnlyDo Discussion board

Re: How to execute commands one by one (General questions)

by wodSupport, Tuesday, July 03, 2007, 16:03 (6353 days ago) @ lax4u

Lax,

regular expressions are used only when you prepend waitfor with 'regex:'. If you don't put that in front, then exact match is used.

BTW you don't have to wait for full line, you can waitfor for anything that will arrive, even part of the line, even one byte if that's safe enough for you.

Drazen's sample was nice - he was waiting for part of the 'press any key' line and then just set DataReady=0 to remove any leftovers from the queue (such as newline chars).

Regards,
Kreso


Complete thread: