![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Is there any way to simulate an "IF window change" or a LOOP WHILE WINDOW UNCHANGED? I need to be able to continue to re-click a control if the window doesn't change in a reasonable amount of time. I can use a WAIT FOR WINDOW change to impose a delay But, how can I stop the loop that is checking for the window changing? (no new window is created, the existing window simply changes after data is gathered). |
| |||
|
Hello, You can use Wait for screen change command, the task will wait for the amount of seconds you specified before it starts comparing the captured image to current image. After that, it continuously compares the image in marked rectangular section to captured image. As soon as the captured image and the current image differ, it stops comparing and goes to the next command. However, if the images do not differ in the specified amount of time then it either stops the task or goes to the next command as specified by you. If your screen is taking time to change then you can increase the time before you stop comparing the images. Alternatively, you can capture any control on window whose value will change and can loop until the value of that particular control is empty. Inside loop block you can insert commands to re-click a control. Hope that helps. |
| |||
|
Hello, We have attached a sample for reference. In this sample we are looping until the 'Company' textbox is empty. After 15 iterations we are filling the Company textbox with some value. The task come out of the loop as soon as the textbox is filled with certain value. Hope that helps. |
![]() |
| Thread Tools | |
| Display Modes | |
| |