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!

Originally posted by whydgyt Edit line 123 of the current SuperDuperMacro.lua file

replace

"Super Duper Macro query"

with

"SDM query"

REASON:

The prefix error is due to the "Prefix" character limit set to 16 characters.

the "Super Duper Macro query" string is 23 characters long.

Whydgyt the Mage
Feathermoon

if i had to guess, the reason you guys are still having errors from this mod, is because if you change a string in one place in a mod, ( or in any programming language, ) you'll have to make that change everywhere else that same string shows up, too.

i'll dig through the mod, fix that, and also set it so it says it is patch 4.1 ready. once that's done, i'll upload a fan update, and post a link to it here.

keep in mind though, most likely this update will be a one-time thing. and, if there are any other bugs, i won't be fixing them, unless i get REAL lucky, and find some bugs while fixing these ones.

This is the error I am getting as our current patch (4.1). I am updated with all community authored patches (thank you) prior to this and after yesterdays patch this problem has developed. I snipped day & time and count in the error message but the count just climbs higher and higher. However, the mod seems to still work...

For some reason, my macros in the SDM interface on the left side become unclickable sometimes. I have to spam /console reloadui til they become clickable. I did a /framestack and the part responsible for being able to click the macros (seems to be a table) is being put under stuff like sdm_mainFrame sdm_mainFrame_macrosScroll and sdm_mainFrame_listBackground. when its normally clickable, the table is above those things I listed. Can we get a fix for that please?

Originally posted by Splitail I have properly downloaded this into my addons directory and it doesn't show up in my addons list in the game. I can't get it to work. I have checked and the folder is there in the addons directory, but no option for SDM in the addons screen in WoW. Sigh.

Get the patch for Cataclsym (try reading the other comments before you make a post).

I have properly downloaded this into my addons directory and it doesn't show up in my addons list in the game. I can't get it to work. I have checked and the folder is there in the addons directory, but no option for SDM in the addons screen in WoW. Sigh.

Amazing addon! One feature that would make big scripts a lot easier to developer and debug is the ability to use carriage returns and tab indents to keep code clear.

I know the WoW engine doesn't like white space/CRs but SDM could dynamically remove them before sending them to the WoW script interpreter. I'd love to see that as missing brackets or ends in a page long script can be very hard to track down without them.

Do you copy your SDM SavedVariables as well when you change PC? If not this is your problem, SDM saves its macros in a text file (WoW\WTF\Account Name\SavedVariables\SuperDuperMacro.lua) specific to the computer the macro was created on.

Dunno if my problem is specific to recent patch change or not, as I didn't use SDM prior to 4.0.1. I multi-box on 2 PCs and log into both PCs with toons that use SDM. What I'm seeing is SDM deleting the created macros ('deleting redundant macro' text in chat) or the SDM macro disappears from my action bar. I've enabled SDM addon on both PCs for each toon that uses SDM and I believe this causes the delete. When I don't enable on one PC, I believe this is when the macro vanishes from the action bar.

Anyone know a fix for this, other than using just a particular PC to login from? The reason I don't micro-manage logins to specific PCs is that I use an older laptop for my slave toons and I only power the laptop when I'm actually boxing (trying to extend laptop life as much as possible and the internal fan is very noisy!). If I'm just working on rot/theory/crafting, I use my main PC to log.