This portion of the script is used to wait for a process complete window or a popup error message (Update Material Handling Device Quanitity). If the error message pops up, it is OK'd and we continue to wait for the complete window. The macroscheduler error message is that the error popup is not there.
Code: Select all
//Global settings
Let>WW_TIMEOUT=180
Let>VAREXPLICIT=1
Let>WF_TYPE=2
CapsOff
[...]
WaitWindowOpen>FactoryFLOW Calculation Progress
//what if MH Quantities are wrong?
OnEvent>WINDOW_OPEN,Update Material Handling Device Quantity,2,QUANTITY_ERROR
Label>LOOKING_FOR_QUANTITY_ERROR
Wait>1
IfWindowOpen>FactoryFLOW
Goto>CALCULATION_COMPLETE
Endif
Goto>LOOKING_FOR_QUANTITY_ERROR
SRT>QUANTITY_ERROR
SetFocus>Update Material Handling Device Quantity
WaitReady>0
//OK
Press ALT
send>o
Release ALT
END>QUANTITY_ERROR
//Calculation Complete
Label>CALCULATION_COMPLETE
SetFocus>FactoryFLOW
WaitReady>0
Press Enter
[...]