Download
(400Kb)
Download
Updated: 05-24-23 07:21 AM
Pictures
File Info
Compatibility:
Embers of Neltharion (10.1.0)
WOTLK (3.4.0)
Updated:05-24-23 07:21 AM
Created:unknown
Downloads:3,231
Favorites:30
MD5:
Categories:Miscellaneous, The Burning Crusade Classic, Classic - General, Other, Utility Mods

SlashLib

Version: 4.11
by: Zax [More]

------------------------------------------------------------------
SlashLib is a user defined slash-commands library with a local popup menu for quick execution.
Stored slash-commands can be saved for all of your characters, or only the current one.


------------------------------------------------------------------
Editing slash-commands
------------------------------------------------------------------
Right-click on the local popup menu to access editing interface.
The editing interface allows you to store all slash-commands (built-in or created by other AddOns), scripts and macros.
User defined slash-commands can have several lines.

Saved slash-commands can be set visible or not. Invisible saved slash-commands will not appear in the local popup menu.

All the available slash-commands are listed, depending on the loaded addons. Please note that only slash-commands are listed and not emotes.
Click on a available slash-command to play it. Right-click on a available slash-command to insert it.


------------------------------------------------------------------
Supported slash-commands:
------------------------------------------------------------------
/slashlib show | hide -- show or hide the local popup menu.
/slashlib alpha NUMBER -- modify the local popup menu transparency
/slashlib edit -- open editing interface
/slashlib import [player] -- import all general or player slash-commands
/slashlib restore [player] -- restore all general or player slash-commands, as they were after lastest addon loading
/slashlib reset -- reset SlashLib interface
/slashlib resetall -- reset ALL SlashLib settings to default, including saved slash-commands


------------------------------------------------------------------

- 4.11 : 2023-05-20 : Patch 10.1 compliant.
- 4.10 : 2022-10-20 : Dragonflight (WoW 10) compliant.
- 4.00 : 2021-07-20 : Fully rewrited, with a brand new editing interface. Local popup menu for quick execution added. WoW 9.10 compliant (also works in Classic environment).
- 3.03 : 2014-11-02 : Patch 6 compliant (checkboxes bug fixed).
- 3.02 : 2011-18-03 : Saving some options bug fixed.
- 3.01 : 2011-12-03 : Hotfix for patch 4.03. Thanks again Dridzt :)
- 3.00 : 2011-06-29 : Major LUA and XML optimizations. LUA 5.x compliant. Edit field enlarged. Commands liste can be called directly. Settings are now available from the standard settings panel. Patch 4.2 compliant.
- 2.14 : 2010-10-17 : Hotfix for patch 4.01.
- 2.13 : 2008-10-18 : Minimap button bug fixed.
- 2.12 : 2008-10-17 : Patch 3.02 compatible. Thanks to Dridzt :)
- 2.11 : 2007-10-30 : Delete stored command bug fixed. Patch 2.2 compliant.
- 2.1 : 2006-12-12 : Patch 2.0 compatible.
- 2.01 : 2006-10-26 : User's command scroll bug fixed.
- 2.0 : 2006-10-25 : Ability to call scripts by name with slash-cmd added. List of all available slash-cmds added.
- 1.01 : 2006-10-20 : User's slash-cmds now saved (bug fixed). 255 characters limit in scripts removed.
- 1.0 : 2006-10-18 : First public release.
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
4.10
399kB
Zax
10-22-22 07:57 AM


Post A Reply Comment Options
Unread 02-19-09, 11:43 AM  
Mike-N-Go
A Theradrim Guardian
 
Mike-N-Go's Avatar
AddOn Author - Click to view AddOns

Forum posts: 68
File comments: 147
Uploads: 18
Here are a few ideas:

1) Shorter /slashlibdo; I think /sl would suffice
2) Ability to create unique slash commands in with the addon (IE:, something is called 'in', have the mod run the code (provided 'slashName' is the var storing the string 'in', _G["SLASH_"..slashName.."1"] = "/in" SlashCmdList[slashName] = function( msg ) ... end ) this could be a shortcut or the name of the thing
3) Passing of parameters to slash commands (IE: with '/slibdo in bop mo jo jo' or '/in bop mo jo jo', call what slib has of under the index of 'in' with 'bop' the first arg and 'mo jo jo' the second arg, accessable by a global arg (there should also be defaults assigned by the script if the first or second arg were not provided)) the first arg could be called SL_arg1 and second SL_arg2 or something, and then used in the script part of your addon (there could also be 'override' features)
4) LDB button instead of the mini-map icon
5) A way to share and import scripts; invoke a command via the addon and the current selection or all of the commands in the addon are made into a string ( with the different args separated by something like double $$, followed by a line return) then put into a copy-frame; from this copy-frame, the user can then put the output where someone else can then copy it and put it on their system. Also, there could be a P2P way to share in game.
6) False positive blank line errors. I get 'SlashLib: ERROR - is not a valid command!' when there are line returns when I run a script
7) A default script for /slashlibhelp; the only way I found the addon's ingame help was looking at the code, in my text editor
8) Key bindings for scripts

Example: I want to make a slash command, called dd, with your addon that runs SetDungeonDifficulty() with a dynamic parameter (1, 2, or 3). The script of the entry would be "/run SetDungeonDifficulty(SL_arg1)) If I click on the addon's window to run it, it should pop up a static popup dialogue and ask me to either select or input the pram. If I wanted to do it with a slash command, I could key '/slibdo dd 1' or '/slibdo dd normal' (if normal/heroic/epic, the addon would set the pram to 1/2/3 respectively). It would then run the command, setting the dungeon difficulty to the desired setting.

Edit: Added 8
__________________
Currently contemplating coming back to Authorship.. been away for years. Please let me know you care, by commenting on what addon(s) of mine you want to see updated.

Author of Daily Bean Counter, MyNameTogglesWhenIAFKorDND, Extended Shutdown Warning, Auto Mail Director, Duel Nullify, Spec Transmiter, Say Again, Window Teller, Who Crafts, Ad Repeater, Privy Cork, Mac Backup, and more.
Last edited by Mike-N-Go : 02-23-09 at 05:52 AM.
Report comment to moderator  
Reply With Quote
Unread 09-16-08, 10:59 PM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1360
File comments: 829
Uploads: 55
WotLK compatible version

Fortunately this beautiful addon only needs minor fixes to work on WoW 3.x.

A couple edits (mainly scrollframe fixes) was all it took to have it 100% working on the WotLK beta.
Report comment to moderator  
Reply With Quote
Unread 03-13-08, 04:55 AM  
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 147
File comments: 20
Uploads: 12
Re: Problems with 2.3

Hapepe82, could you post your macro?
At this time, I doesn't encounter error with WoW 2.3
Report comment to moderator  
Reply With Quote
Unread 03-07-08, 02:49 AM  
Hapepe82
A Kobold Labourer

Forum posts: 0
File comments: 80
Uploads: 0
Problems with 2.3

Hey, shashlib is a great idea, and I tried to incorporate it into my macros.

But I had a serious problem with the way, the commands are invoked by slashlib. I Always get an error of the chat-editbox when sending the command.

I traced it down to the lines 365++ of the slashlib.lua which read:

--
if (string.sub(chaineTemp,1,1) == "/") then
DEFAULT_CHAT_FRAME.editBox:SetText(chaineTemp);
ChatEdit_SendText(DEFAULT_CHAT_FRAME.editBox,0);
else
echo(SLIB_NOM..": ERROR - "..chaineTemp.." is not a valid command!","red");
end;
--

Now i changed them to something like this:

--
local editbox = CreateFrame("EditBox", "myEditBox", UIParent, "ChatFrameEditBoxTemplate")

editbox:SetText(chaineTemp)
ChatEdit_SendText(editbox)
--

While this solves my error problem, it does nothing else... it does NOT invoke the command at all

Does anybody have an idea how to fix this?

Thank you so much in advance!

Hapepe
Report comment to moderator  
Reply With Quote
Unread 11-01-07, 02:40 PM  
mulesh
A Chromatic Dragonspawn
 
mulesh's Avatar
AddOn Author - Click to view AddOns

Forum posts: 193
File comments: 107
Uploads: 5
Shweeeett!
__________________
"Don"t tase me bro!" ~ Andrew Meyer
Report comment to moderator  
Reply With Quote
Unread 11-01-07, 07:37 AM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1360
File comments: 829
Uploads: 55
I'm sooo trying this ... have been waiting for something like it since Jim and his Slash Commander disappeared.

Very nice idea.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: