macros:example:lockconsole
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| macros:example:lockconsole [2018/04/02 09:12] – icke_siegen | macros:example:lockconsole [2022/12/11 07:27] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Example | Example | ||
| - | ====== Lock Console ====== | + | ====== |
| ^ by: | Mike Vandevoort | | ^ by: | Mike Vandevoort | | ||
| - | ^ published: | February 2018 | | + | ^ published: | February 2018, edited for v15: 2022, Sebastian Beutel |
| ^ description: | ^ description: | ||
| ^ remarks: | put your own unlock code into the macro | | ^ remarks: | put your own unlock code into the macro | | ||
| Line 12: | Line 12: | ||
| ==== functions ==== | ==== functions ==== | ||
| * [[: | * [[: | ||
| + | * [[: | ||
| ===== Code ===== | ===== Code ===== | ||
| <code xml LockConsole.xml> | <code xml LockConsole.xml> | ||
| <?xml version=" | <?xml version=" | ||
| - | < | + | < |
| - | <!-- M-V Rental 12/07/2017 created by Mike Vandevoort --> | + | |
| - | <macro id=" | + | |
| - | < | + | <macro id=" |
| - | <step pause=" | + | < |
| - | <!-- change 1009 with the lock code that you want --> | + | <step pause=" |
| - | System.LockConsole(" | + | <!-- change 1009 with the lock code that you want --> |
| - | </ | + | System.LockConsole(" |
| - | </ | + | </step> |
| - | </ | + | </ |
| + | </macro> | ||
| + | |||
| + | <macro id=" | ||
| + | <sequence> | ||
| + | < | ||
| + | <!-- change 1009 with the lock code that you want --> | ||
| + | LockMode.LockConsole(" | ||
| + | </ | ||
| + | </ | ||
| + | | ||
| </ | </ | ||
| </ | </ | ||
| Line 34: | Line 46: | ||
| This explains the functional steps within the sequence. For all the other XML details please refer to [[: | This explains the functional steps within the sequence. For all the other XML details please refer to [[: | ||
| - | This macros | + | This macro uses the system function System.LockConsole() resp. LockMode.LockConsole() to lock the console. There are two reaons |
| * it is much quicker than the built-in menu: if you assign this macro to a button, you just need to click/press this button to lock the console | * it is much quicker than the built-in menu: if you assign this macro to a button, you just need to click/press this button to lock the console | ||
| * if you have ever fat-fingered the console: with this macro you can be sure to always use the correct unlock code | * if you have ever fat-fingered the console: with this macro you can be sure to always use the correct unlock code | ||
| Line 40: | Line 52: | ||
| ===== How to use it ===== | ===== How to use it ===== | ||
| + | - depending from software version you need to use the first or the second macro (the other simply does nothing) | ||
| - replace 1009 with your own unlock code | - replace 1009 with your own unlock code | ||
| - [[: | - [[: | ||
macros/example/lockconsole.1522660354.txt.gz · Last modified: 2018/04/02 09:12 by icke_siegen
