That first one looks great to me.. I suppose I need to loop with a timer to wait for a response, with a short delay between loops, then match the contents of the last line. There should only be two lines for this, then if they get it wrong, three lines, and so on. I could test on the number of lines to see the change.

I wonder how I missed $line.. that seems too easy smile

I could not get /filter to work, and my 2nd version is much more simple, I think. I think the window wasn't available when the filter line ran..

Thanks for the tips!