You have to login in order to post a reply to this topic.

4 replies [Last post]
Emerson
User offline. Last seen 1 week 2 days ago. Offline
Joined: 11/18/2009
Posts: 19

I would like to "control v" the contents of %GlobalVariable% into a text file. Up until now I have been using the "Send Keys" action; however, since there is a lot of text it is too slow.

What action can be used to paste the content of my %GlobalVariable% saved in the clipboard?

Thanks,

Emerson

 

Jag Foo
User offline. Last seen 1 year 43 weeks ago. Offline
Joined: 07/03/2009
Posts: 31
Re: Pasting the contents of %GlobalVariable%

Hi Emerson,

 

I know what you mean. Using the send keys to auto type text can be very slow if the amount of text is large.

 

 

Try this:

1. Store the text variables into a clipboard using the "Set Clipboard Text" action.

2. Use "Get Clipboard Text" to copy the text

3. Paste the text to where you want it to be using "Send Keys" - {Control}({V})

 

Hope this helps!

Jag

Emerson
User offline. Last seen 1 week 2 days ago. Offline
Joined: 11/18/2009
Posts: 19
Re: Pasting the contents of %GlobalVariable%

Thanks for you answer; however, I need a different solution as it seems I cannot copy the text that parse using the following parse action to clip board.

Text To Parse: %GlobalVariablesRawText%

Text To Find: (?<=\$%GlobalVariableName%\r\n-\r\n)(.|\r\n)*?(?=\r\n--)

Store Match(es): %GlobalVariable%

As you see it almost works like a get clipboard action; but, I need it to save to globalvariable for my needs; I wish it could store match(es) in globalvariable and clipboard at the same time; that would be good.

Hopefully, Codex and answer this one.

 

Emerson
User offline. Last seen 1 week 2 days ago. Offline
Joined: 11/18/2009
Posts: 19
Re: Pasting the contents of %GlobalVariable%

After further investigation; I realized I made a mistake. You can paste the contents of the globalvariable. My mistake was I forgot to add the action "Set Clipboard Text" to the global variable before I tried to "Get" it. Doh :)

Thanks, Jag

 

Jag Foo
User offline. Last seen 1 year 43 weeks ago. Offline
Joined: 07/03/2009
Posts: 31
Re: Pasting the contents of %GlobalVariable%

Excellent Emerson. Great to know you got it working.

That's how we all learn and progress. Through making mistakes.

 

I got a sneaky feeling you will soon be great at automating!

 

Cheers,

Jag