Category: Miscellaneous
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
2.13
Date:
10-18-2008 12:22 PM
Size:
95.16 Kb
Downloads:
816
Favorites:
23
MD5:
Pictures
Click to enlarge
Main UI
Click to enlarge
Edit UI
SlashLib
This WoW addOn is a user defined slash-commands library .
It can be used like the built-in wow macros interface, but without tons of buttons on your screen, and without the 255 characters limitation.

A friendly interface allows you to store and quickly execute all slash-commands (built-in or created by other addons), scripts and macros you want.

To open SlashLib, define a shortcut or click on the icon sticked to the minimap, or type /slashlib.

Just open SlashLib main interface and create macros like in the standard macros interface.
A list of all available slash-commands (built-in and created by other addons) is accessible from the "Edit" window. Please note that this list doesn't show emotes, only slash-commands.
When checked, option "close before running" will close the library before performing your scripts.


-----------------------------------------
Advanced usage - calls with slash-command
-----------------------------------------
Any script stored in SlashLib can be called with a single slash-command by passing the script's name as parameter.

- Syntax:
/slashlibdo myScriptName
/slibdo myScriptName
Where myScriptName is the name of a stored script, as it appears in the library list (case insensitive).

- Example:
/slibdo sample script
/slibdo Bow and Thanks

----------------------------------------
v 2.12: hotfix by Dridzt, thanks to him
----------------------------------------
http://zax.tripoy.com
  Change Log - SlashLib
2.13 - 10/18/2008: minimap button bug fixed.
2.12 - 10/17/2008: Patch 3.02 hotfix by Dridzt.
  Comments - SlashLib
Post A Reply Comment Options
Old 02-19-2009, 11:43 AM  
Mike-N-Go
An Aku'mai Servant
Interface Author - Click to view interfaces

Forum posts: 36
File comments: 147
Uploads: 19
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

Last edited by Mike-N-Go : 02-23-2009 at 05:52 AM.
Mike-N-Go is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-16-2008, 11:59 PM  
Dridzt
A Rage Talon Dragon Guard
Interface Author - Click to view interfaces

Forum posts: 319
File comments: 466
Uploads: 38
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.
Dridzt is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-13-2008, 05:55 AM  
Zax
A Fallenroot Satyr
 
Zax's Avatar
Interface Author - Click to view interfaces

Forum posts: 21
File comments: 14
Uploads: 5
Re: Problems with 2.3

Hapepe82, could you post your macro?
At this time, I doesn't encounter error with WoW 2.3
Zax is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-07-2008, 02:49 AM  
Hapepe82
A Kobold Labourer

Forum posts: 0
File comments: 87
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
Hapepe82 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-01-2007, 03:40 PM  
mulesh
A Chromatic Dragonspawn
 
mulesh's Avatar
Interface Author - Click to view interfaces

Forum posts: 193
File comments: 107
Uploads: 5
Shweeeett!
__________________
"Don"t tase me bro!" ~ Andrew Meyer
mulesh is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-01-2007, 08:37 AM  
Dridzt
A Rage Talon Dragon Guard
Interface Author - Click to view interfaces

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

Very nice idea.
Dridzt is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.