Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2010, 02:11 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 242
Default IF window change - versus, wait for window change

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).
Reply With Quote
  #2 (permalink)  
Old 03-15-2010, 08:25 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,311
Default

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.
Reply With Quote
  #3 (permalink)  
Old 03-16-2010, 12:06 AM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 242
Default

is there an example of that second alternative?
it sounds promising.
Reply With Quote
  #4 (permalink)  
Old 03-17-2010, 10:37 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,311
Default

Hello,

We can certainly create specific sample for you. Can you please provide us URL of such website?
Reply With Quote
  #5 (permalink)  
Old 03-17-2010, 11:01 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 242
Default

sadly, it is a secure website with confidential info.

could you try a generic approach?
Reply With Quote
  #6 (permalink)  
Old 03-18-2010, 12:00 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,311
Default

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.
Attached Files
File Type: atmn Sample_LoopWhileCondition.atmn (7.0 KB, 2 views)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 06:13 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved