This script is a cut off with the only variables and code which influences the behavior, e.g it reacts exactly the same way as the original part of the script.//downTime for WaitWindowOpen> function
Let>WW_downTime=10
//Visible window Only for all functions over windows
Let>WF_TYPE=2
//create variable "session" because of the error > could not find label %session%.et6*
let>session=0
Gosub>resetHMI
Let>session=HMI600 - P4LT_1
Gosub>resetHMI
Let>session=HMI600 - P4LT_2
Gosub>resetHMI
Let>session=HMI600 - P4LT_3
Gosub>resetHMI
Let>session=HMI600 - P4LT_4
Gosub>resetHMI
Let>session=HMI600 - P4LT_5
Gosub>resetHMI
Let>session=HMI600 - P4LT_6
Gosub>resetHMI
Let>session=HMI600 - P4LT_7
Gosub>resetHMI
Let>session=HMI600 - P4LT_8
Gosub>resetHMI
Let>session=HMI600 - P4LT_9
Gosub>resetHMI
Let>session=HMI600 - P4LT_10
goto>END
SRT>resetHMI
Let>resetFocus=%session%
Concat>resetFocus,.et6*
SetFocus>%resetFocus%
SetFocus>Firmware *
press tab*4
press enter
End>resetHMI
Label>END
How it should work:
Focus window 1 and it's child window, perform the action and jump immediately to the next. The starting arragement is the window 1 is at the bottom of the open windows and so on until window 10.
How it actually works:
It starts the action at child window 10 but focus on window 1, then action on child window 1 and focus on 2 and so on until 9 where it performs the action at the end. This alone is not a tragedy, because no one is left out. BUT it waits for the further action until the child window before is no longer busy, instead of immediately going ahead. So the action durates 9 time
longer as it could. So instead of 30 seconds it takes 5 minutes.