This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
manual:Variables [2018/04/26 17:15] JMichaelTX Revise section on the Variables Panel |
manual:Variables [2018/08/05 18:03] JMichaelTX Rewrite intro to provide general definition and use of variables |
||
---|---|---|---|
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: | ||
+ | |||
+ | * Set a Variable using any of these [[:Actions|Macro Actions]]: | ||
+ | * [[action:Set_Variable_to_Text|Set Variable to Text Action]] | ||
+ | * [[action:Set_Variable_to_Calculation|Set Variable to Calculation Action]] | ||
+ | * Other [[:Actions|Macro Actions]] | ||
+ | * Get or Set Keyboard Maestro Variables using [[:Scripting|Scripting]] | ||
+ | * Reference a Variable using the [[token:Variable|Variable Token]]: `%Variable%YourVarName%` | ||
+ | * And other means discussed below. | ||
+ | |||
+ | --- | ||
+ | |||
+ | ===== Scope ===== | ||
+ | |||
Keyboard Maestro includes variables with three different scopes of allowed access, in order of scope, with broadest scope first: | Keyboard Maestro includes variables with three different scopes of allowed access, in order of scope, with broadest scope first: |