Re: How to execute commands one by one (General questions)
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:
- How to execute commands one by one - lax4u, 2007-07-03, 00:31
- Re: How to execute commands one by one - wodSupport, 2007-07-03, 01:38
- Re: How to execute commands one by one - lax4u, 2007-07-03, 06:54
- Re: How to execute commands one by one - woddrazen, 2007-07-03, 08:13
- Re: How to execute commands one by one - lax4u, 2007-07-03, 15:27
- Re: How to execute commands one by one - woddrazen, 2007-07-03, 15:53
- Re: How to execute commands one by one - lax4u, 2007-07-03, 15:59
- Re: How to execute commands one by one - wodSupport, 2007-07-03, 16:03
- Re: How to execute commands one by one - lax4u, 2007-07-03, 16:19
- Re: How to execute commands one by one - wodSupport, 2007-07-03, 16:26
- Re: How to execute commands one by one - lax4u, 2007-07-03, 17:10
- Re: How to execute commands one by one - wodSupport, 2007-07-03, 17:41
- Re: How to execute commands one by one - lax4u, 2007-07-03, 17:41
- Re: How to execute commands one by one - wodDamir, 2007-07-03, 17:57
- Re: How to execute commands one by one - lax4u, 2007-07-03, 18:15
- Re: How to execute commands one by one - wodDamir, 2007-07-03, 18:26
- Re: How to execute commands one by one - lax4u, 2007-07-03, 20:56
- Re: How to execute commands one by one - wodDamir, 2007-07-03, 21:10
- Re: How to execute commands one by one - lax4u, 2007-07-03, 20:56
- Re: How to execute commands one by one - wodDamir, 2007-07-03, 18:26
- Re: How to execute commands one by one - lax4u, 2007-07-03, 18:15
- Re: How to execute commands one by one - wodDamir, 2007-07-03, 17:57
- Re: How to execute commands one by one - lax4u, 2007-07-03, 17:41
- Re: How to execute commands one by one - wodSupport, 2007-07-03, 17:41
- Re: How to execute commands one by one - lax4u, 2007-07-03, 17:10
- Re: How to execute commands one by one - wodSupport, 2007-07-03, 16:26
- Re: How to execute commands one by one - lax4u, 2007-07-03, 16:19
- Re: How to execute commands one by one - wodSupport, 2007-07-03, 16:03
- Re: How to execute commands one by one - lax4u, 2007-07-03, 15:59
- Re: How to execute commands one by one - woddrazen, 2007-07-03, 15:53
- Re: How to execute commands one by one - lax4u, 2007-07-03, 15:27
- Re: How to execute commands one by one - woddrazen, 2007-07-03, 08:13
- Re: How to execute commands one by one - lax4u, 2007-07-03, 06:54
- Re: How to execute commands one by one - wodSupport, 2007-07-03, 01:38