Differences
This shows you the differences between the selected revisions of the page.
2016-06-22 | 2016-06-22 | ||
5.8.4 Extension can require specific PowerShell and Windows version. (martin) | 5.8.4 Run time options for extensions. (martin) | ||
Line 54: | Line 54: | ||
<code> | <code> | ||
- | @option <name> <type> "<caption>" <default> <additional ...> | + | @option <name> [-config|-run] <type> "<caption>" <default> <additional ...> |
</code> | </code> | ||
^ Parameters ^ Description ^ | ^ Parameters ^ Description ^ | ||
| ''name'' | Unique name of the option. In the custom command, any ''%name%'' string will get replaced with configured value of the option. \\ For options dialog control types ''label'' and ''link'' use ''-'' (dash), as these have no value. | | | ''name'' | Unique name of the option. In the custom command, any ''%name%'' string will get replaced with configured value of the option. \\ For options dialog control types ''label'' and ''link'' use ''-'' (dash), as these have no value. | | ||
+ | | ''-config'' | The option is used when configuring the extension on [[ui_pref_commands|Preferences dialog]]. | | ||
+ | | ''-run'' | The option is used when running the extension. When both the ''-config'' and the ''-run'' are used, the value configured on the Preferences dialog is used as the default value, when running the extension. | | ||
| ''type'' | Type of the option or options dialog control. \\ Supported types are: ''textbox'', ''file'', ''dropdownlist'', ''combobox'', ''checkbox'', ''label'', ''link'' | | | ''type'' | Type of the option or options dialog control. \\ Supported types are: ''textbox'', ''file'', ''dropdownlist'', ''combobox'', ''checkbox'', ''label'', ''link'' | | ||
| ''caption'' | Caption of the options dialog control representing the option. | | | ''caption'' | Caption of the options dialog control representing the option. | |