Extends the ability to run scripts for testing purposes. Great for testing addons and inspecting the game environment.

This Addon takes the default "/script" command and gives it thorough history expansion, reloadui script recovery, and a UI element inspector. This addon is primarily aimed at Addon developers


Usage Instructions:
All extended /script commands shown below are also supported in the multi line text entry below the history list. Just leave off the "/script" piece for any command included in said box. Press the Evaluate button to run the script.



Mouse Over the items in the list to see the stored script
Mouse 1: Immediately executes the command stored in the history row
Mouse 2: Context Menu (includes edit, delete, run, etc)
Shift + Mouse 1: Shortcut to populates the addon text field with the contents of the history row and gives keyboard focus to the field.
Shift + Mouse 2: Shortcut to delete the history row under the cursor.
  • /script -> any lua code will execute properly assuming the lua code does not begin with !,@, or /. The Lua code that gets executed is then automatically stored in the command history and can be accessed with special syntax.
  • /script !# -> (such as "/script !34") execute history item 34 immediately.
  • /script /# -> (such as "/script /5") populate the chat script input with history item 5. The command can then be edited without affecting the history. Running the command (edited or not) creates a new history item.
  • /script @# name -> saves the specified history item as "name"
  • /script @name # -> an alternate form which does the same thing
  • /script !name -> instantly executes the code stored in "name"
  • /script /name -> populates the chat script input with the code stored in name
  • /script \template{arg1} -> The template may appear anywhere in passed script and will be expanded before the script is passed to the interpreter

New Keybindings Available under "Lilith's Command History"
  • Toggle History Window - Show or hide the LCH Addon.
  • ReloadUI - When developing addons, you'll end up reloading UI hundreds of times
  • Get Control Under Cursor - Grabs the UI element under the cursor and binds it to the global variable lchcontrol. This allows easy inspection of graphical elements of the builtin UI or other addons when combined with the history.

Utility commands:
  1. /comhist [show|hide]-> toggle/show/hide command history
  2. /comhist dump named -> dumps all named commands
  3. /comhist clear <all|allnamed|history|(named item)> -> clears the specified command items
    display

I hope you enjoy this one as much as I do

返回
顶部