Thread: Macro Questions
View Single Post
Old 09-09-2004, 10:54 AM   #3 (permalink)
RaspenJho
 
Join Date: Sep 2004
Age: 32
Posts: 4
Default

An IF statement is not exactly what I was asking about. The IF will evaluate the contents of the journal at this point in time, and allow code execution to continute either within the IF condition, or the ELSE condition, or, with the lack of an ELSE condition, continue with the line following the END IF.

A wait for statement would wait for given text to appear in the journal before returning, or return after a specified timeout value. I was hoping for something like this:

/* string WaitFor( string[] patterns, int timeout ) { ... } */

strMatch = WaitFor( {"You pull out an item", "don't seem to be biting", "fail to catch" }, 10500)

With strMatch containing the text that matched, or String.Empty in the case of a timeout.
RaspenJho is offline   Reply With Quote