Copy to phraseexpress clipboard cache  SOLVED

User-to-User discussion about the PhraseExpress macro programming.
Post Reply
Tobias
Posts: 3
Joined: 09 Aug 20, 11:14

Copy to phraseexpress clipboard cache

Post by Tobias » 12 Oct 20, 18:00

I have a text and want to copy it to the phrase express clipboard cache in two steps (first one piece of it, then another piece of it) then access access this to copies via the clipboard cache. Is this possible?

So e.g:

Some text piece A. Some text piece A. Some text piece A.

Some text Piece B. Some text Piece B. Some text Piece B.

Function: Copy piece A to the clipboard cache. Copy piece A to the clipboard cache. Insert the text A from clipboard cache via a command. Insert text B from clipboard cache.

As far as I know, you can only put one piece of text into the system clipboard and then paste that text. Is there a way to copy to and paste from the phrase express clipboard cache?

Peter Stotz
PhraseExpress Expert
Posts: 873
Joined: 27 Feb 08, 15:07

Post by Peter Stotz » 12 Oct 20, 22:03

@Tobias
Is there a way to copy to and paste from the phrase express clipboard cache?
Maybe these are possible solutions for your application:
1. use the PhraseExpress clipboard as desktop menu
and/or
2. assign an Autotext to the PhraseExpress clipboard, e.g. ##clpbrd and use it...

Peter Stotz
Windows 10 - PhraseExpress v15.0.66RC

Peter
Posts: 4
Joined: 20 Jul 20, 21:21

Post by Peter » 14 Oct 20, 19:29

What I do is following:

I need to copy lots of data from G Analytics and paste it into Excel sheet on daily basis. To avoid going back and forth between chrome tabs I select value#1 and copy (ctrl+c). Then select value #2 and copy and so on.

Then I assigned right Alt + M shortcut to show clipboard cache and by typing 1 to 9 I can select values. If further down the list then I can simply choose by clicking.

See the video: https://www.loom.com/share/d1207805600e ... e7064ade2e

Tobias
Posts: 3
Joined: 09 Aug 20, 11:14

Post by Tobias » 19 Oct 20, 09:50

Peter Stotz wrote:
12 Oct 20, 22:03
@Tobias
Is there a way to copy to and paste from the phrase express clipboard cache?
Maybe these are possible solutions for your application:
1. use the PhraseExpress clipboard as desktop menu
and/or
2. assign an Autotext to the PhraseExpress clipboard, e.g. ##clpbrd and use it...

Peter Stotz
Windows 10 - PhraseExpress v15.0.66RC
Can you elaborate on how you can use ##clpbrd to copy text to the clipboard cache?

Now I do this in phraseexpress in a phrase:

Text A, Text A, Text A, Text A, Text A, Text A

Text B, Text B, Text B, Text B, Text B, Text B

[Set variable TextA] // puts Text A text line in this variable

[Put text A into clipboard] // puts variable TextA to the system clipboard, not the clipboard cache.

I would like to add the following also to the clipboard manager/clipboard cache

[Set variable TextB] // puts Text B text line in this variable
[Put text B into clipboard] // I would like to puts variable TextB to the clipboard cache as well.

Then when I have both text copied to the clipboard cache I can enter the clipboard cache and paste from there what I want. Hope you understand what I am after.

Peter Stotz
PhraseExpress Expert
Posts: 873
Joined: 27 Feb 08, 15:07

Post by Peter Stotz » 19 Oct 20, 11:20

@Tobias
The clipboard autotext (##clpbrd or so) is used to display (and select) the contents of the clipboard
or if the #SETPHRASE macro is used.

A workflow example:
Step 1
Text A, Text A, Text A, Text A, Text A
Mark and copy this with CTRL+C
Alternatively:
A variable content can be written to the clipboard by PhraseExpress with the #SETPHRASE macro:
{#SETPHRASE -autotext <phraseautotext> -description <description> -content <content> -folder <clipboard-autotext>}
Step 2
Text B, Text B, Text B, Text B, Text B
Mark and copy this with CTRL+C or use the alternative with #SETPHRASE
Step 3
Type in the clipboard autotext or use the clipboard desktop menu to show the clipboard content and select and paste the desired content into a target application
or - if you used the #SETPHRASE macro -
use <phraseautotext> to insert its content.

Peter Stotz
Windows 10 - 64 bit - PhraseExpress v15.0.70

Tobias
Posts: 3
Joined: 09 Aug 20, 11:14

Post by Tobias » 19 Oct 20, 13:03

Thank you! The key to add the variable content to the clipboard cache was to use #SETPHRASE and to use -folder <clipboard-autotext>. This way I can add several texts/variables to the clipboard cache.
Peter Stotz wrote:
19 Oct 20, 11:20
@Tobias
The clipboard autotext (##clpbrd or so) is used to display (and select) the contents of the clipboard
or if the #SETPHRASE macro is used.

A workflow example:
Step 1
Text A, Text A, Text A, Text A, Text A
Mark and copy this with CTRL+C
Alternatively:
A variable content can be written to the clipboard by PhraseExpress with the #SETPHRASE macro:
{#SETPHRASE -autotext <phraseautotext> -description <description> -content <content> -folder <clipboard-autotext>}
Step 2
Text B, Text B, Text B, Text B, Text B
Mark and copy this with CTRL+C or use the alternative with #SETPHRASE
Step 3
Type in the clipboard autotext or use the clipboard desktop menu to show the clipboard content and select and paste the desired content into a target application
or - if you used the #SETPHRASE macro -
use <phraseautotext> to insert its content.

Peter Stotz
Windows 10 - 64 bit - PhraseExpress v15.0.70

Post Reply