Super Duper Macro

To view recent changes, click the "Change Log" tab at the top of this page.

Open the in-game interface by typing /sdm

This addon allows you to create macros beyond the 255-character limit, and even beyond the 1023-character macrotext limit. However, no individual line in a macro may be more than 1023 characters long (you will get a warning). The number of lines is unlimited. Super Duper Macro also allows you to share macros with your friends in-game.

This mod allows you to make two types of macros:

Button macros are just like regular macros, but they can be as long as you want. You cannot make an unlimited number of them; they share a limit with your regular macros (36 global and 18 character-specific for each character).

Floating macros do not have buttons, and are accessed by /click. You can make as many of these as you want.

You can also make lua scripts of unlimited length that you can call using "/sdm run <name>" or via sdm_RunScript("name")

Suggestions and bug reports are always welcome. You can post comments on the wowinterface.com page for this addon, or if you want to add something yourself, you can upload it in the "Optional Files" tab.

All the regulars on the UI & Macro forums, who taught me how to program for WoW.

2.6.1 (10/16/14)
•*Fixes "Different name on button" and "Expand/collapse all folders"

2.6 (10/16/14)
•*Fixes character-specific macros, which broke when Warlords gave us more global macros.

2.4.6 (2/20/12)
•*Fixed a bug where the interface sometimes inappropriately prevented you from making new macros

2.4.5 (1/17/12)
•*Fixed a bug that caused the "Change Name/Icon" window to sometimes be unresponsive
•*Now the "Change Name/Icon" always deselects the icon when it opens so that you don't accidentally change the icon of one of your macros

2.4.4 (12/17/11)
•*Fixed a bug where the button on the macro frame that opens SDM would sometimes appear in the wrong place.

2.4.3 (11/30/11)
•*Re-enabled the text that shows how many more button macros you can create

2.4.2 (11/30/11)
•*Fixed a minor error that occurs when running SDM for the first time
•*When attempting to pick up a macro during combat, you will get an error message created by SDM instead of Blizzard's "Interface action failed due to an addon".

2.4.1 (11/30/11)
•*Updated for version 4.0 - you will lose any custom icons for your macros. Sorry!

2.4 (11/20/11)
•*Fixed the Send/Receive feature; now you can share macros with your friends again, as long as you are both using the latest version.
• Fixed a bug where buttons on the SDM frame would sometimes stretch away
•*Many UI Improvements

2.3 (11/16/11)
•*The SDM frame now hides when you press escape!
•*Added more tooltips; still more to come

2.2.1 (11/15/11)
•*Fixed a bug where the macro list sometimes became unclickable

2.2 (11/4/11)
•*Upgraded macros will now appropriately change their icons based on the macro code (unless an icon other than the Question Mark icon was selected). If you upgraded a macro with version 2.1, you will need to manually change the icon to the Question Mark icon.
•*Added a "Downgrade" button that converts a Super Duper macro into a standard macro
•*Added a "Claim"/"Disown" button that allows you to have a single character-specific macro or script that applies to multiple characters
•*Added a "Save As..." button that allows you to save an existing macro as a different type or character. For example, you can save a button macro as a floating macro if you want to free up a macro slot.
•*Several UI improvements; more to come!

2.1 (10/19/11)
•*Added an "Upgrade" button to the standard macro frame, allowing you to convert a standard macro into a Super Duper macro
•*Removed an overbearing version-checking system

1.8.3 (2/26/09)
•*Changing the name of a macro will now properly update the title text above the edit box.
•*Improved the "/sdm test" function. Please re-test it and submit your results!

1.8.2 (2/26/09)
•*Fixed a bug that caused the image on button macros to show as a question mark more often than necessary.
•*Added a command "/sdm test" that does nothing but check some nyi code. Please run this command and report the results at wowinterface.com.

1.8.1 (2/21/09)
•*SDM no longer conflicts with LayMacroTooltip or with other addons that modify the macro frame.

1.7 (2/8/09)
•*Made the macro list better
- Color-coded the different macro types
- Created a slider below the menu to adjust the size of the icons
- Added drop-down menus to filter the list by type and character
•*Changed the storage of macros in preparation for a future version that will include a sortable macro list with user-defined folders
•*Bug fixes
- The save confirmation dialog box now shows while dead
- Fixed a typo in the "Usage..." text for scripts

1.6.1 (1/27/09)
•*Fixed a serious bug that happened upon login after leaving "different name on button" blank. You may now safely leave it blank if you wish to show no text on the button.

1.6 (1/19/09)
• Changed the slash command to run a floating macro. Also added a command to run button macros. Click the "Usage..." button for more details.
•*Added an interface for changing the name and icon of a macro within the SDM window.
• Button macro names now conflict with each other (unless they are specific to different characters)
• Disallowed some characters in macro/script names because they were causing problems. You may find that some of these problematic characters still work on button macros, for which you can select a different name in the Change Name/Icon frame.
•*Changed the appearance of button macros when viewed in the default macro frame
• Added a clickable, scrolling menu of macros. This will be further improved later.
•*Several efficiency improvements. As a consequence, your SDM-created button macros will be removed from action bars and lose thieir icons. Sorry!

1.5.1 (1/12/09)
•*Minor bug fixes

1.5 (1/12/09)
•*Added the ability to share macros with other players (click "Send/Receive" to check it out!)
• Fixed a bug where the Save button was sometimes inappropriately disabled

1.4 (1/8/09)
• Added an option to show/hide the text on macro buttons
• Fixed ">" to be more accurate
• SDM will no longer attempt to create, delete, or modify macros during combat. You can still do these things, but the changes will not take effect until after combat.
•*Deleting floating macros will now actually disable them
• Greatly increased the efficiency of operations like saving and deleting
•*Increased the limit on the length of each line to 1023, and made the number of lines limitless (actually, the maximum length of any string is 2^24 characters, so the limit is somewhere below that, but that's the length of about 20 average novels and it will probably crash your client).
•*Changed the structure of the macro frames to eliminate the chance of a recently discovered "C stack overflow" error on very long macros

1.3.1 (12/16/08)
•*Fixed an occasional bug with the "Get Link" and "Delete" buttons
• Blocked you from attempting to make more button macros than the standard macro interface can hold

1.3 (12/15/08)
• You can now use the addon to store long scripts and call them via a function or slash command.
• SDM now keeps track of the button macros it creates, and deletes orphaned ones upon login. If you are upgrading from a previous version, you can delete the old button macros that SDM created (the text of the new ones all start with "#sdm").
• Because of this, SDM will no longer ever replace your macros, and their names do not need to be unique at all. Floating macros and Scripts still have some restrictions on naming, you will get a warning it you try to violate them.
• Added many UI improvements to make working with the addon more intuitive:
- Pressing tab will now add four spaces
- Pressing enter will now be equivalent to the appropriate button click
- Moved some buttons around to more appropriate places
- Added buttons that link between the regular macro window and the SDM window
- Buttons will now "gray out" when appropriate
- The SDM window will now become unresponsive during confirmation dialogs

1.2 (12/13/08)
Fixed a bug that caused major problems when there were no macros in the list.

1.1 (12/12/08)
More UI improvements. Some UI elements are still placeholders.

1.0 (11/13/08)
just two minor updates in code to make it 3.0-ready. More UI improvements to come!

I recently tried to use SDM again, as I love the functionality it provides with macros. Unfortunatley it throws an error whenever I do right about anything (open/close the map, open/close the game menu, etc.).
On top of that there is a bug which doesn't let me create new macros and the addon deleted some of my old macros.
I decided to have a look at the line in which the error occurs:
SuperDuperMacro_interface.lua:430

The error being that mTab.icon is a nil value and can therefore not be indexed. After checking for a nil value, mTab.icon sometimes is a number value which can not be indexed.
So here's my Quick&Dirty workaround, which allowed me to restore it to full functionality (even my old macros re-appeared and I was able to save new ones!):

Code:

if mTab.icon ~= nil and type(mTab.icon) ~= "number" then
if mTab.icon:upper() == sdm_defaultIcon and mTab.type=="b" and (sdm_UsedByThisChar(mTab)) then
_,texture = GetMacroInfo(sdm_GetMacroIndex(mTab.ID))
else
texture = "INTERFACE\\ICONS\\"..mTab.icon
end
end

I know that it is in no way a true "fix" for the addon, but maybe some ppl can get a use out of it until a proper patch is released

i recently made a macro and assigned the icon for the heart shaped box to it. as soon as this happened, ALL global macros vanished from my list.

is there a fix for this? i dont want all my macros to have to use the ? icon.

ok, i figured out a (painful) fix to this. if you happen to know which icon you are trying to assign, you can go to wowwiki, look up the item, and then click on the icon, it will give you the "name" of the icon, which you can then manually enter into the lua for superdupermacro. currently, SDM is using the numbers for some of the icons, which gives the error that many of us have noticed. in order to work, the icon must be referenced by name.

This error pops up as soon as I log on any toon, additionally it won't let me make/keep any new macros i make. I don;t get an error message when I use this addon alone but it still won;t let me create/keep new macros I make.

1 - Exit WoW

2 - Back up your SuperDuperMacro.lua - It will be in a directory something like this:

WTF\Account\YOUR_ACCOUNT_NAME\SavedVariables\SuperDuperMacro.lua

(do not tell anyone your account name)

3 - Delete SuperDuperMacro.lua

4 - Log in with all other addons disabled.

5 - Create a macro

6 - Test if it will let you save it.

What you're doing to test this? Making one, logging out and logging back in on the same character?

If it lets you save a new macro, then enable all your addons and test again.

If you have old macros you want to rescue from your backup SuperDuperMacro.lua, let me know.

--

The one problem I know about is setting an icon for an item which is very low on the list of icons. Otherwise, it works perfectly for me.

This error pops up as soon as I log on any toon, additionally it won't let me make/keep any new macros i make. I don;t get an error message when I use this addon alone but it still won;t let me create/keep new macros I make.

Wonderful addon. I still use it heavily after all this time. I have extremely complex macros and code which are essential to my gameplay.

Originally Posted by Blanckaert

Also getting this creating a macro and assigning an icon to it... I did delete SDM and lua/lua.bak files and re installed, but same thing. any other ideas?

I believe I have this same problem.

I noticed that when I assign a custom icon, all entries underneath that one are removed from the list. I can re-edit that entry and change the icon back to '?' and all items reappear.

I believe someone else reported having this problem in their earlier comment.

[edit] This only occurs when the icon I select is at the bottom of the list and not at the top. Perhaps Super Duper Macro only understands a specific range of Icons, and new ones added with this new expansion somehow break it.

--

I also noticed that I am unable to edit Blizzard's default macros. Any additions, deletions or modifications are discarded on logout. My solution was to disable Super Duper Macro, restart the client, make my changes, restart the client, and enable Super Duper Macro. This was frustrating to reproduce, and that workaround was the only one I discovered.

--

I'd also love to be able to have snippets of SDM (or other) code able to reach into SDM macros to modify them. I use code to modify my macros on the fly, but I'm limited to standard Blizzard macros and not more advanced or lengthy stuff in SDM.

--

I'm presently using SDM alongside BindPad and _Dev, since all of these solve somewhat different problems. I'd love to get rid of BindPad if SDM had easy hotkey functionality.

I've had macro toolkit on my radar for some time, but still haven't tried it.

Sounds like your saved variables file is corrupted. Could you please send me the following file: World of Warcraft\WTF\Account\[account name]\SavedVariables\SuperDuperMacro.lua

Also getting this creating a macro and assigning an icon to it... I did delete SDM and lua/lua.bak files and re installed, but same thing. any other ideas?

__________________
Have fun, and remember WOW is just a game, for us to enjoy, and all the Addons we use.... remember the programmer is a human too, and MOST times, is doing this as a hobby, so give them time to have their life, so they can fix the addons, so we can have our WOW life.

Having an issue with seeing my macros. Does this have to do with WOW's issue with not allowing add ons that save variables per character when a player's name has a special character to save said info? I cannot see it regardless of which toon creates it.

So as I was using the icon selector inside of SDM I picked a version of renew that I saw just further down the list of icons and now it throws errors on loading and the point that macro was created it is not displayed in the sidebar and anything created past that seems to be chopped off as well. Hopefully this error helps:

Having an issue with seeing my macros. Does this have to do with WOW's issue with not allowing add ons that save variables per character when a player's name has a special character to save said info? I cannot see it regardless of which toon creates it.

Having an issue with seeing my macros. Does this have to do with WOW's issue with not allowing add ons that save variables per character when a player's name has a special character to save said info? I cannot see it regardless of which toon creates it.