Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. 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 10-04-2011, 04:14 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default ? how is the wait for window change supposed to work?

I have a window.

I have captured a portion of it.

But,
WAIT FOR WINDOW CHANGE command seems to always wait until the timer expires.

I captured a picture of the word "done" which appears at the bottom of the screen when it is fully painted.

Yet,
the WAIT FOR WINDOW CHANGE still waits the entire time.

how can I get AA to recognize that the window has changed?
Reply With Quote
  #2 (permalink)  
Old 10-06-2011, 04:59 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Phil,

The "Wait for window change" waits till the "window title" of the changed window appears and there is a facility to enter the time in the timer field till which the "Wait for window change" command searches for the window.

So, the "Wait for window change" will wait for whatever turns up first, the window change or the time to exit in the timer field.

The timer is basically a "wait for" time, till which the command waits for the window change. You will have to set the timer accordingly.

If the window has already changed but the command still waits till the expiry time, then it is probably not able to understand the window change.

In this case, try to use wild card if possible in the "select window" field of "Wait for window change" command.

Thanks & Regards
Reply With Quote
  #3 (permalink)  
Old 10-06-2011, 05:25 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

Quote:
Originally Posted by forumstaff View Post
Hello Phil,

The "Wait for window change" waits till the "window title" of the changed window appears and there is a facility to enter the time in the timer field till which the "Wait for window change" command searches for the window.

So, the "Wait for window change" will wait for whatever turns up first, the window change or the time to exit in the timer field.

The timer is basically a "wait for" time, till which the command waits for the window change. You will have to set the timer accordingly.

If the window has already changed but the command still waits till the expiry time, then it is probably not able to understand the window change.

In this case, try to use wild card if possible in the "select window" field of "Wait for window change" command.

Thanks & Regards

I've been using wild cards.

I need to be able to RELIABLY determine when a new window is FULLY in place and ready for keystrokes.

What is the best way to do that?
Reply With Quote
  #4 (permalink)  
Old 10-07-2011, 01:07 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Phil,

According to your requirement, the best option is to use a loop with Image Recognition condition.

For example:

1 Loop While Image from "Automation Anywhere Premier - The Leader in Automation Software. Business process automation an - Windows Internet Explorer" Exists in "Automation Anywhere Premier - The Leader in Automation Software. Business process automation an - Windows Internet Explorer" with 70 percentage match
2 Delay: (500 ms)
3 End Loop

This will search for the button (in your case the "done" button) until it appears. We have used a delay which you can set according to your requirement.

Thanks & Regards
Attached Images
File Type: jpg ir.jpg (59.4 KB, 3 views)

Last edited by forumstaff; 10-07-2011 at 01:41 PM.
Reply With Quote
  #5 (permalink)  
Old 10-10-2011, 05:36 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

Or do

clear clipboard
Loop while `some text` does not exist in clipboard
keystroke CTRL A in currently active window
delay 500ms
keystroke CTRL C
End Loop
Reply With Quote
  #6 (permalink)  
Old 10-11-2011, 12:39 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

wow - that CTL+a ; CTL+C
is a BIG HAMMER.

the screen flashes BLUE etc....

I was trying to make something that people could easily and reliably navigate to a window and PASTE data.

This seems like a cure worse than the disease.
Reply With Quote
  #7 (permalink)  
Old 10-11-2011, 06:09 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

Quote:
Originally Posted by philkryder View Post
wow - that CTL+a ; CTL+C
is a BIG HAMMER.

the screen flashes BLUE etc....

I was trying to make something that people could easily and reliably navigate to a window and PASTE data.

This seems like a cure worse than the disease.
The question is whether it works - a little blue never killed anyone. I use this method frequently but never when a user is on that machine. It works great.

Again, I don`t know your setup but I`m not sure why you need to automate the process of cut & paste.
Reply With Quote
  #8 (permalink)  
Old 10-11-2011, 09:41 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

Quote:
Originally Posted by trentonponder View Post
The question is whether it works - a little blue never killed anyone. I use this method frequently but never when a user is on that machine. It works great.

Again, I don`t know your setup but I`m not sure why you need to automate the process of cut & paste.
there is also navigation
and I also scrape some fields and put them into the paste text...

when people can just cut-n-paste they seem to become too creative.
Reply With Quote
  #9 (permalink)  
Old 11-09-2011, 08:17 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

well - yes, I've learned to love the bomb - as Dr. Strangelove would say.

I'm moving away from AA
and try plain old "send keys"

it may not do much,
but,
it doesn't have these weird surprises I get with AA.
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 04:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved