action:Set_Clipboard_to_Image
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| action:Set_Clipboard_to_Image [2019/06/26 06:38] – created peternlewis | action:Set_Clipboard_to_Image [2021/10/14 07:50] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Set Clipboard to Image ====== | ====== Set Clipboard to Image ====== | ||
| - | The Set Clipboard to Image action allows you to set a selected variable to plain text, by either typing in the text box, or selecting | + | The Set Clipboard to Image action allows you to set the System Clipboard, Trigger Clipboard |
| - | {{: | + | {{ setclipboardtoimage.png?nolink& |
| - | ===== Examples ===== | + | You can set the image in the action, from a custom icon (v10.0+), or read the image from the System Clipboard, Trigger Clipboard, a Named Clipboard, or a file, or you can get the image from the screen (which would be the same as the [[action: |
| - | ==== Set To Text You Type ==== | + | Note that including large images |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | ==== Set to The Clipboard ==== | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | ==== Set To Another Variable ==== | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | See below for how to use dynamic variable names. | + | |
| - | + | ||
| - | ==== Combine Multiple Variables and Text ==== | + | |
| - | + | ||
| - | There is no need to use any operators when combining text with multiple variables or other tokens. | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | ===== Setup ===== | + | |
| - | + | ||
| - | Configure the Action as Needed | + | |
| - | + | ||
| - | - Select the variable to set from the //Set variable// pop-up or enter a variable name. | + | |
| - | - In the text area, Enter the text and/or [[: | + | |
| - | - You may intermix text and tokens as much as you like | + | |
| - | - You can type the Token, in the format of `%TokenName%`, | + | |
| - | - [[: | + | |
| - | - You can create a dynamic variable name using this format: `%Variable%%%Variable%myVar%%%` | + | |
| - | + | ||
| - | Unlike most places you specify a variable, the variable name itself is a text token field, so you can set a variable whose name changes. | + | |
| - | + | ||
| - | The Set Variable to Text action allows you to control what text processing happens | + | |
| - | + | ||
| - | * Process Text Normally (process text tokens and backslash characters) | + | |
| - | * Process Text Tokens Only (process text tokens but not backslash characters) | + | |
| - | * Process Nothing (process neither text tokens nor backslash characters) | + | |
| - | + | ||
| - | Most other [Text Fields](https:// | + | |
| - | + | ||
| - | Tip: leave notes for yourself about what you're doing. Click on the gear icon at top right of the action to select //Set Note…//. A window appears where you can enter text. Click the OK button to save the text of the note for future reference. | + | |
| - | + | ||
| - | ===== How To Use Dynamic Variable Names ===== | + | |
| - | + | ||
| - | In some languages, this is known as // | + | |
| - | + | ||
| - | ==== Dynamic Determination of Variable Name in Text Area Block ==== | + | |
| - | + | ||
| - | **This requires two steps (two Actions): | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | **The Steps Are** | + | |
| - | * **STEP 1.**\\ | + | |
| - | * In the text area of the Action, enter a special form of the Token entity, where you will embed another Variable token, and optionally text. | + | |
| - | * For example: `%%Variable%%myVar%Variable%myVarNum%%%` | + | |
| - | * Note the use of two percent symbols (`%%`) in places where you want the result to be one `%`. | + | |
| - | * Here is how this text will be processed when the Action executes: | + | |
| - | %%Variable%%myVar%Variable%myVarNum%%% | + | |
| - | + | ||
| - | TEXT BECOMES | + | |
| - | %% % | + | |
| - | Variable | + | |
| - | %% % | + | |
| - | myVar | + | |
| - | %Variable%myVarNum% | + | |
| - | %% % | + | |
| - | + | ||
| - | RESULT WHEN EXECUTED | + | |
| - | %Variable%myVar2% | + | |
| - | </ | + | |
| - | * This is the variable we want to get the results of, so we will need another Action to get it.\\ | + | |
| - | * **STEP 2.**\\ | + | |
| - | + | ||
| - | ==== Dynamic Determination in Variable Name Block ==== | + | |
| - | + | ||
| - | Since the Variable Name block of the //Set Variable to Text// Action accepts tokens, we can just use it directly if we just need to concatenate two more more Variables, with optional text. | + | |
| - | * For example: `%Variable%myPrefix%%Variable%myFieldName%` | + | |
| - | * When this action executes, it will first evaluate these tokens to produce something like: `myAddress`, | + | |
| - | + | ||
| - | + | ||
| - | {{: | + | |
| ===== See Also ===== | ===== See Also ===== | ||
| - | === Actions === | + | ==== Actions |
| - | * [[action:Set Variable | + | * [[action:Copy Clipboard |
| - | * [[action: | + | * [[action: |
| - | * [[action:Substring of Variable or Clipboard|Substring of Variable or Clipboard]] | + | |
| * [[: | * [[: | ||
| - | ==== Forum ==== | ||
| - | |||
| - | - [[https:// | ||
| - | - [[https:// | ||
| - | - [[https:// | ||
| - | - [[https:// | ||
| - | - [[https:// | ||
| - | |||
| - | - [[https:// | ||
action/Set_Clipboard_to_Image.1561531108.txt.gz · Last modified: by peternlewis
