This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:Variables [2018/08/05 18:03] JMichaelTX Rewrite intro to provide general definition and use of variables |
manual:Variables [2018/08/05 21:56] peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Variables ====== | ====== Variables ====== | ||
- | Like most programming languages, Keyboard Maestro allows you, the Macro builder, to create Variables for use later on in the same Macro, or in other Macros. So, your use of Variables can include the following: | + | Like most programming languages, Keyboard Maestro allows you, the Macro builder, to create Variables to store data for use later on in the same Macro, or in other Macros. So, your use of Variables can include the following: |
* Set a Variable using any of these [[:Actions|Macro Actions]]: | * Set a Variable using any of these [[:Actions|Macro Actions]]: | ||
* [[action:Set_Variable_to_Text|Set Variable to Text Action]] | * [[action:Set_Variable_to_Text|Set Variable to Text Action]] | ||
* [[action:Set_Variable_to_Calculation|Set Variable to Calculation Action]] | * [[action:Set_Variable_to_Calculation|Set Variable to Calculation Action]] | ||
+ | * [[action:Prompt_for_User_Input|Prompt For User Input]] and other _Prompt_ Actions | ||
+ | * [[action:Search_Variable|Capture Groups from RegEx Search]] of Variable or Clipboard | ||
+ | * The [[token:CurrentClipboard|System Clipboard]] and [[token:NamedClipboard|Named Clipboards]] | ||
* Other [[:Actions|Macro Actions]] | * Other [[:Actions|Macro Actions]] | ||
+ | * Other [[:Tokens|Tokens]] | ||
* Get or Set Keyboard Maestro Variables using [[:Scripting|Scripting]] | * Get or Set Keyboard Maestro Variables using [[:Scripting|Scripting]] | ||
* Reference a Variable using the [[token:Variable|Variable Token]]: `%Variable%YourVarName%` | * Reference a Variable using the [[token:Variable|Variable Token]]: `%Variable%YourVarName%` | ||
* And other means discussed below. | * And other means discussed below. | ||
- | |||
- | --- | ||
===== Scope ===== | ===== Scope ===== |