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 03-01-2008, 07:42 AM
asawyer13 asawyer13 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 7
Default Read Text File into Clipboard or Variable

Is there a way to read an entire text file into a variable or the clipboard?

I basically have quite a few lines of description in a text file, and I want to just read it into a variable so I can put it in a text box on a website.

Alan
Reply With Quote
  #2 (permalink)  
Old 03-03-2008, 09:07 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello Alan,

Definitely yes, you can read lines in a text file to Automation Anywhere variable. Please follow below mentioned steps to understand how to read values from a text file.
1. Let’s say you want to create a variable by the name of 'TextFileData' of 'Value' type. What you can do is:
1. Go to Tools->Variable Manager->Add new variable and select 'Value' from the drop down list.
2. Name the variable as 'TextFileData''(without quotes)
3. Select the option 'Read from Text File' and specify the file path of the text file from where you want to read the variable values and click on 'Open file'.( Please note we are referring to a text file which ends with a '.txt' extension .
4. Supposing the data in the text file appear like this ‘TextFileData= ABCDEFG..…..'(without quotes)
5. Click on 'Save' followed by ‘Ok’ in the 'Variable Manager'.

Moreover, please refer to our online task to read variable values from a text file.
http://www.tethyssolutions.com/T12.htm

Alternatively, you can also copy entire contents of file using keyboard shortcut 'Ctrl+a' followed by 'Ctrl+c'. The entire contents of a file are copied to system variable, Clipboard. Using 'Assign from Clipboard' command assign the current value of clipboard to some variable (created through Tools->Variable Manager) of value type say $TextFileData$.

The text format of your task will look something like this:

1) Keystrokes: [CTRL DOWN]a[CTRL UP] in "Window Title of File"
2) Delay: (250 ms)
3) Keystrokes: [CTRL DOWN]c[CTRL UP] in "Window Title of File"
4) Delay: (250 ms)
5) Assign value of Clipboard to variable "$TextFileData$

Hope that helps.
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 10:02 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