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 08-21-2008, 05:08 PM
kamal.chawla kamal.chawla is offline
Junior Member
 
Join Date: Aug 2008
Posts: 8
Default Copying variable in new task not working

HI

I read somewhere in this forum that to pass one variable from one task to another is either to write in file and read it in new task
or
copy variable to $Clipboard$ and take $clipboard$ in new task

I am using the clipboard option and it is working correctly some times and some times it gives error like replace "-" with "_" or replaces "/" with "|"

for example , i have one variable having directory in this "c:\Reports\data\aug-2008". I copy this to clipboard and call a new task.

and in new task i am assigning filename to this variable as
variable operation : $clipboard$\filename.ext to newvar

newvar sometimes gives corretvalue and sometimes it becomes
c:|reports\data\aug-2008\filename.ext
or c:\reports\data\aug_2008|filename.ext

causing problems.

Please help.
Reply With Quote
  #2 (permalink)  
Old 08-22-2008, 01:01 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

This is very strange as we have never heard or seen such type of behaviour before. However, let us investigate.

Please try inserting delay of at least 300ms after command that copies value to clipboard also after Variable Operation command that assigns value to newvar. Just double click on Delay command (found under 'Delays/Pause/Wait' command category), specify the delay time and save the command. Copy-paste this Delay command after every action in task so that each action gets enough time to execute. Save the task and run it.

If it doesn’t help, then please send us your task so that we can try recreating the scenario at our end and can help you with a viable solution?

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old 08-22-2008, 11:39 AM
kamal.chawla kamal.chawla is offline
Junior Member
 
Join Date: Aug 2008
Posts: 8
Default

Basically what is happening is the characters are being taken with "Shift key" pressed like "|" for "\" . "_" for "-"

and this is happening while puching these values in form in IE. If i do write the variable in log file, it comes clean.

Is there a way to set the current working directory ?
Reply With Quote
  #4 (permalink)  
Old 08-23-2008, 04:57 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello.

Try using 'Loop For Each file in a folder' command found under 'Conditions/Loops' command category.
If you want to perform some actions for all files in a folder, you can use this command. You can get the name of the file by using the System Variable $FileName$. Similarly to get the extension of the file you can use $Extension$ System variable and to get the path of the folder under which this file resides use the System Variable $CurrentDirectory$ . All these system variables will return empty value when used outside this looping command. Text Format of commands would appear as follows,

1) Start Loop " Each File in C:\Reports\data\aug-2008"
2) Message Box: "$CurrentDirectory$\$FileName$.$Extension$"
3) End Loop

Hope that helps.
Reply With Quote
  #5 (permalink)  
Old 08-25-2008, 10:17 AM
kamal.chawla kamal.chawla is offline
Junior Member
 
Join Date: Aug 2008
Posts: 8
Default

Thanks
The process is actually is in IE, after doing some activity it saves the results in file.

I am trying to give filename in IE (in a predefined location) which i am trying to give on the basis of day process it ran.
so I saved the filename in a variable like $var1$ = "c:\reports\data\aug-2008\processoutput21aug2008.doc"

but when i give command keystroke $var1$ in window

it prints the keystrokes as "c:|reports\data\aug-2008\processoutput21aug.doc" (sometimes it prints correctly also)
most of the times it is happeneing at "c:\" but sometimes it do happen at Aug-2008 as aug_2008 or aug_@#$%

what i can conclude is while inserting the variable either the SHIFT key remains pressed for next variable(s) or does not press.
is there a way to slowly print this variable?
Reply With Quote
  #6 (permalink)  
Old 08-26-2008, 12:39 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 524
Default

Hello,

We tried to reproduce the scenario at our end on several PCs but it could not reproduce. Do you have another computer on which you can start this run?

Can you please try to replace $var1$ with its value (c:\reports\data\aug-2008\processoutput21aug2008.doc) in Keystrokes command and see if the same thing happens again?

Would it be possible for you to send the atmn file at http://www.tethyssolutions.com/support_form.htm so that our Technical Support staff try to reproduce the exact scenario to help you resolve the problem?
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

vB 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 02:09 AM.


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