![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| 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. |
| |||
| 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. |
| |||
| 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 ? |
| |||
| 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. |
| |||
| 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? |
| |||
| 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? |