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 07-01-2009, 08:38 AM
Clay Clay is offline
Junior Member
 
Join Date: May 2009
Posts: 19
Default Activate Window

I have a job where I am using the command Activate Window so the task can open a window that is already open in the task bar.

When I run the task manually it usually find the window, other times it does not find the window and this causes the job to fail.

The window I am trying to activate is an excel sheet, due to the way I am using past special I have found that using the command for Excel to activate the window does not work. Rather it will not allow me to paste special only values into another worksheet, Excel 2007

I also have more than 1 Excel sheet open at the time I am trying to activate the window.

Do you have any suggestions?
Reply With Quote
  #2 (permalink)  
Old 07-01-2009, 10:34 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello Clay,

Insert enough delay after the command to execute the command flawlessly. Also, specify actual window title (without wild card) in Activate Window command as you are working with multiple excel files.

Can you upload the text format of your task so that we can look into it and suggest a viable solution? Open your task in a Task Editor, go to Tools->Save as text file and upload this text file.
Reply With Quote
  #3 (permalink)  
Old 07-01-2009, 12:07 PM
Clay Clay is offline
Junior Member
 
Join Date: May 2009
Posts: 19
Default

Hello,
Thank you for the suggestion. I have added a time delay after telling AA to activate a certain window. I will know tomorrow if the task runs successfully or not.
I have attached the .txt file if you have any other suggestions.

Thank you!!
Attached Files
File Type: txt BO REPORT v2..txt (2.9 KB, 6 views)
Reply With Quote
  #4 (permalink)  
Old 07-01-2009, 02:57 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello Clay,

We looked into the text format of your task. We suggest you to use Excel command to work with multiple excel files. That way the actions will be performed in specified worksheet only irrespective of the active window and your task will run faster. You can specify a different session name while opening each spreadsheet. Each time you use the ‘Open-Spreadsheet’ command, it starts a session named ‘Default’ and that will continue to run unless you ended the session using the ‘Close Spreadsheet’ command or close the spreadsheet manually. All the commands between ‘Open-Spreadsheet’ and Close Spreadsheet’ are dependant on the session which is started using the ‘Open Spreadsheet’ command.

You can view demo on Excel commands usage from, Excel Automation Software - Automate Excel functions with Automation Anywhere
Reply With Quote
  #5 (permalink)  
Old 07-07-2009, 07:37 AM
Clay Clay is offline
Junior Member
 
Join Date: May 2009
Posts: 19
Default

Thank you for the suggestion.

However as I stated in a previouse post I am unable to use the built in commans for Excel due to needing access to use paste special options. When using the built in Excel options it does not allow me to have access to the same paste special options.

Any other suggestions?

Thank you,
Reply With Quote
  #6 (permalink)  
Old 07-07-2009, 12:22 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

You can create an excel macro for paste special and call that macro from Automation Anywhere using Excel:Run Excel Macro command.

We have attached a sample task for your reference. To run this task,

. Please copy .atmn file under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
. Please copy Book1.xls under C:\

Hope that helps.
Attached Files
File Type: zip PasteSpecial.zip (8.6 KB, 2 views)
Reply With Quote
  #7 (permalink)  
Old 07-07-2009, 01:53 PM
Clay Clay is offline
Junior Member
 
Join Date: May 2009
Posts: 19
Default

Thank you, that worked great!!
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 01:56 PM.


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