I have an application where I need to run a report and I am using MS to automate filling in the fields where needed by reading a text file (ReadLn).
Once the report is generating, I need to wait for one of two windows to open. One is a print window and the other tells me that there was no data available.
How can I have MS wait for one or the other window to open.
If I use "WaitWindowpen>Print", and the other one appears titled "Continue", MS sits and waits for the "Print" window.
Rory
Branch Point - WaitWindowOpen
Moderators: JRL, Dorian (MJT support)
I created a loop with a timer and counter. If neither window opens in the allotted amount of time, then the script quits runing.
Thanks for your help.
Rory
Let>j=1
Label>Again
IfWindowOpen>TCM Print
GOTO>PressOn
ELSE
IfWindowOpen>Continue
Press Enter
Wait>Idle
GOTO>start
ELSE
Wait>1
If>j=1800
GOTO>finish
ELSE
Let>j=j+1
GOTO>Again
ENDIF
ENDIF
Label>PressOn
Thanks for your help.
Rory
Let>j=1
Label>Again
IfWindowOpen>TCM Print
GOTO>PressOn
ELSE
IfWindowOpen>Continue
Press Enter
Wait>Idle
GOTO>start
ELSE
Wait>1
If>j=1800
GOTO>finish
ELSE
Let>j=j+1
GOTO>Again
ENDIF
ENDIF
Label>PressOn