Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
powerscript_extendscript_actions [2021/09/04 03:28] – [Debugging] o2wikipowerscript_extendscript_actions [2021/09/08 07:45] – [Default Command List] o2wiki
Line 144: Line 144:
 For a compact view use JSON.stringify, i.e. console.log( JSON.stringify(var) ); For a compact view use JSON.stringify, i.e. console.log( JSON.stringify(var) );
  
-  * _console.show() +  * **_console.show()** 
-  * _console.hide() +  * **_console.hide()** 
-  * _console.clear() +  * **_console.clear()** 
-  * _console.format(any,  nolabel, noCr, maxLevel ) +  * **_console.format(any,  nolabel, noCr, maxLevel )** 
     * Same as log below but returns a string rather than outputs to log window     * Same as log below but returns a string rather than outputs to log window
-  * _console.log(any, nolabel, noCr, maxLevel)+  *** _console.log(any, nolabel, noCr, maxLevel)**
       * any - a message or any variable       * any - a message or any variable
       * maxLevel - max delth for nested objects/array, default is 5       * maxLevel - max delth for nested objects/array, default is 5
Line 282: Line 282:
 ----------- -----------
  
 +===  [resetSettings] ===
 +LoReloads the default settings for the loaded PowerScript (As if it was first loaded)
 +
 +**Parameters**
 +  * scriptID:  (not required)
 +  * data: (not required)
 +
 +**Callback Return value**
 +<code>
 +   object {
 +         success: bool,      // false: no script loaded 
 +         ready:  bool,    // script loaded and ready to run commands
 +         alreadyLoaded:  // true if script was already loaded (will always return false as its was reloaded) 
 +     }
 +</code>
 +
 +-----------
  
 ===  [getActions] === ===  [getActions] ===