SetPreference command

From m204wiki
Revision as of 17:18, 9 July 2022 by Ekern (talk | contribs) (Created page with "__TOC__ {| |width="50%"| '''Action:''' |width="50%"| <span class="f_Para">Lets you use a macro or [[intro_configurable_components.html|mapped]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Action:

Lets you use a macro or mapped button or key to control Client preference settings that are available via the Preferences dialog box or the Proc Selection page.

Syntax:

setPreference option {on|off} 

where option is one of the following:

  • breakAfterReadScreen

setPreference ignoredFileTypeList {on|off} 

Where:

    • on honors the "ignore list" default behavior
    • off does no file type filtering
  • macroAutorun
    • Selects or clears the Macro Autorun checkbox in the Preferences dialog box
  • valueDisplayOnConsole
    • Controls whether value displays appear in a separate Value window when the Console is open (the default, on, shows them in the Console if it is open)

Note:Instead of on or off, the command also takes 1 or 0.

You may want to use the command to toggle a setting in a Client macro, for example:

# toggle use exclude/include directives  toggle &debuggerDirectives !Directives setPreference debuggerDirectives &debuggerDirectives 

Client menu: --
Introduced: Build 55