Download
(17 Kb)
Download
Updated: 05-21-13 11:15 AM
Pictures
File Info
Compatibility:
Escalation (5.3)
Thunder Isle (5.2)
Updated:05-21-13 11:15 AM
Created:11-08-08 11:23 AM
Downloads:4,388
Favorites:131
MD5:
Categories:Action Bar Mods, Bags, Bank, Inventory
5.3
Select
Version: 2.0.13
by: Gello [More]
This mod adds the /select macro command to use an ability among a list of items and spells. Right-clicking your macro from the bars will pop out a menu where you can change the macro to use a different item or spell.

__ New in 2.0.13 __
  • toc update for 5.3 patch
  • Flyout menus at the top 25% of the screen will grow downwards
__ New in 2.0.12 __
  • Support for the addon Select Favorite Mounts and /select mount:favorite

__ How to use __
  • Create a macro with this line: /select item or spell, item or spell, item or spell, etc
  • Drag the macro to your bars.
  • The first item or spell will be the default action when you hit the macro.
  • Right-click the macro on your bars to change it to a different item or spell.
For instance, warriors may find this useful:
/select Battle Shout, Commanding Shout
When you create that macro it will cast Battle Shout every time it's hit. If you join a group with a death knight and want to use Commanding Shout instead, right-click the macro on your bars and choose Commanding Shout. In combat or out the macro will now cast Commanding Shout.

You can also embed the /select within a larger macro. For instance hunters may find this useful:
/cast !Trap Launcher
/select Freezing Trap, Ice Trap, Explosive Trap, Snake Trap
Hit the macro to turn on Trap Launcher if it's not on already, and then use it to launch Freezing Trap. Or right-click the macro to choose a different trap to launch with the macro.

Or inscriptionologomists may find this useful:
/cast Milling
/select type:Herb
Hit the macro to mill the currently loaded herb, or right-click to select a different herb to mill.

__ Search:Keywords __

To help add items and spells to your /select menus (especially since there's a ~30 character tax to macro space, discussed later), several search:keywords are added which users of the earlier version of Select may remember.

Note that all of the filter keywords are Case Sensitive.

item:id or partial name
Add an item by its item:id or all items in your bags and person that contain the partial name.
Examples: item:1234, item:Bandage, item:Ore

spell:id or partial name
Add a spell by its spell:id or all spells in your spellbook that contain the partial name.
Examples: spell:1234, spell:Teleport, spell:Polymorph

mount:flying, land, any, a partial name or favorite(*)
Add all flying mounts, land mounts, any mount, or all mounts that contain the partial name.
Examples: mount:flying, mount:Mechanostrider, mount:Drake
(*) mount:favorite requires the addon Select Favorite Mounts enabled.

profession:primary, secondary, any or partial name
Add primary, secondary or any profession. Supporting skills such as Survey for Archaeology will also be added.
Examples: profession:primary, profession:any, profession:Archaeology

type:"GetItemInfo" type
Add all items that contain the search words in one of its type fields. See http://www.wowpedia.org/ItemType for a full list.
Examples: type:Quest, type:Herb, type:Food & Drink

You can use filters alongside item or spell names too. For instance:
/select Mythical Healing Potion, item:Bandage, Healthstone, type:Food & Drink
__ Using stuff in the popout the menu __

The standard behavior of selecting an item or spell in the popout menu is to simply swap your macro to use that new item or spell. If you want to use it immediately, hold <Alt> as you select it.

If you want this behavior to happen all the time without holding <Alt>, there's an option to change it in the default interface options: ESC -> Interface -> AddOns -> Select -> check 'Use Item or Spell When Selecting'

Now selecting an item or spell will also use it, acting more like the default's flyout menus.

__ How it works __

The previous version of Select edited the macro itself when you changed to a different item or spell. This made the old version impossible to swap during combat.

This version only edits the macro when you create it, adding one line:
/click [btn:2](macro name):Menu;(macro name):Action
Behind the scenes, it creates the secure buttons "(macro name):Menu" to summon the menu, "(macro name):Action" to use the current action and "(macro name):Parent" which is the menu frame and all the buttons you see.

__ Limitations __
  • /select macros need to have unique macro names. All your other macros can share macro names as long as none share a name with a /select macro. The addon may pretend the world will end when it detects this, but the "unexpected" behavior isn't game breaking and renaming either macro will restore the /select macro to working order.
  • The /click automatically added when creating the macro means you have ~30 less characters to use in the macro. The longer the macro name, the less characters you'll have.
  • When you create or edit a macro in combat (you should be fighting!) it will wait until you leave combat to turn the macro on or make changes from your edit.
  • If you gain an item or spell that wasn't available as you entered combat, that item or spell won't be available until you leave combat.
  • If you change the 'Use Item or Spell When Selecting' option in combat, the change won't happen until you leave combat.
  • /select doesn't support macro [conditional]s (yet). But you can often work around it. Here's a mount macro that uses a flying mount and a selectable land mount depending on whether you're in an area you can fly or not:
/cast [flyable,nobtn:2] X-51 Nether-Rocket X-TREME
/select mount:land
__ Future plans __

I do intend to support this addon. However I'll be spending my free time playing Mists of Pandaria when the expansion launches, so some tough choices were made on what to cut before MoP launches. These will likely appear in future updates:
  • macro [conditional] support
  • pet:<name> or <species> search to add companion pets
  • slot:<number> search to implement swapping gear to a specific slot
  • allow /select macros can share names
  • a few minor options like the menu aspect ratio
  • planned optimizations like an item/spell cache for search filters
  • /select command option to exclude items from the list (ie /select item:Ink -Virtuoso Inking Set)
__ Known issues on radar to fix __
  • Hunter pets can be added with spell:Call but it does not name pets and the macro icon isn't updating to them.
  • Items with the same name but different item:id's (ie Tiny Green Ragdolls) will only attempt to use them by name.
  • Some worn quest items like the Sapphire Spectacles will not appear in a select menu while worn.
__ Frequently Asked Questions __

Q: What action bar addons does this support?
A: All of them! Default too, of course. If you can drop a Blizzard macro onto the button then it should work on that button. However, if the macros are outside of the game's 36 general/18 character-specific macro slots, Select won't be aware of them.

Q: Can I add companion pets to a /select?
A: Not yet, sorry. Working on it!

Q: Can I change the order that items or spells list in the menu?
A: If you want certain items to list before others, add them manually. ie: "/select x-51 nether-rocket x-treme, mount:flying" will list the x-51 rocket first.

Q: Tyrael's Charger is missing from my land mounts!
A: Tyrael's Charger can fly so it's grouped with the flying mounts. But if you want to add it to your land mounts you can add it manually: /select tyrael's charger, mount:land

Q: Can I use this to swap trinkets to equip and use?
A: You can! Try "/select type:INVTYPE_TRINKET". At present it will only equip the top trinket slot. A future update will have a slot:<number> filter to support swapping all slots.

Q: Can you make the popout menu align to the action/macro button?
A: No. The secure methods to get the menu working in combat prohibits anchoring willy nilly.

Q: I use spaces for macro names to hide the macro name on the buttons, but I can't have more than one /select macro share a name. Any way to get around this?
A: Use a different number of spaces for each /select macro. Select macros named "(space)(space)" and "(space)(space)(space)" will coexist fine with all your other macros named "(space)".
2.0.13, 5/19/13, toc update, summonpet works in combat, menus at top of screen grow downward
2.0.12, 5/5/13, added mount:favorites filter if Select Favorite Mounts loaded
2.0.11, 4/18/13, BAG_UPDATE unregistered if all menus populated, added Select_PerCharacter_Settings to restore initial actions to last attributes, removed profiling tools
2.0.10, 4/06/13, removed G_PetRoster, added profiling tools
2.0.9, 3/28/13, removed internal pet system, added G_PetRoster
2.0.8, 2/18/13, added macrotext support, centralized timer system, internal pet system
2.0.7, 1/26/13, added tooltips to /select macros
2.0.6, 9/23/12, added nil,1 to GetItemCount in parent:OnShow, added throttled UpdateMacroIcons on BAG_UPDATE, PLAYER_EQUIPMENT_CHANGED
2.0.5, 9/21/12, rewrite release
1.0.0, 11/08/08, initial release
Optional Files (0)


Archived Files (5)
File Name
Version
Size
Author
Date
2.0.12
18kB
Gello
05-05-13 07:24 PM
2.0.11
18kB
Gello
04-18-13 10:47 PM
2.0.6
16kB
Gello
09-23-12 05:20 PM
2.0.5
16kB
Gello
09-21-12 07:06 PM
1.0
4kB
Gello
11-08-08 11:23 AM


Post A Reply Comment Options
Old 05-05-13, 07:27 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 423
File comments: 197
Uploads: 79
2.0.12

Version 2.0.12 just posted only adds support for Select Favorite Mounts. That addon allows you to right-click mounts in your mount journal to favorite them, just like you do for battle pets in the pet journal.

Due to macro space issues, and the desire to get a lot more mounts into /select macros, the other addon was created.

If you don't intend to use that addon, and you're on 2.0.11, there's no need to download this update.
Last edited by Gello : 05-05-13 at 07:36 PM.
Gello is offline Report comment to moderator  
Reply With Quote
Old 05-04-13, 02:49 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 423
File comments: 197
Uploads: 79
Originally Posted by kaiden
Would it be possible to make a macro for Disenchanting like you do with milling? I can't seem to figure that out.
I assume this is for greens you make with another profession with a random suffix. If so, it won't at the moment, sorry. The reason is the button loads the item by name instead of the id. I felt this would be more useful when you get items with the same name but different id (healthstones in the old days, quest items nowadays), then you wouldn't need to swap in the new item you can just continue using it. But I'll consider an option or switching it over.

You may already know this, but for a mass DE macro I recommend something like this (which is in the default UI, don't need this addon or any to do this):

/cast Disenchant
/use item:1234
/use item:5678
/use item:91823
/use item:9821398

instead. If it can't find the first item it will attempt to DE one of the second item and so on.

The item id can be found by looking up the item on wowhead. ie:

http://www.wowhead.com/spell=124571

is item:124571

The reason you want to use an item:id is because this can be a "Misthide Helm of the Monkey", "Misthide Helm of Landslide", "Misthide Helm of Stamina", etc. By using the number instead of the name you tell the game to DE "MistHide Helm of anything, I don't care". But note for the recipes that sometimes make a blue quality instead of a green quality: blue items a different item:id from green items. You'll want to include both item:id's. (Search for "Misthide Helm" on wowhead and you'll see it shows both, with separate item id's)
Gello is offline Report comment to moderator  
Reply With Quote
Old 05-04-13, 12:37 PM  
kaiden
A Murloc Raider
 
kaiden's Avatar

Forum posts: 5
File comments: 6
Uploads: 0
Would it be possible to make a macro for Disenchanting like you do with milling? I can't seem to figure that out.
kaiden is offline Report comment to moderator  
Reply With Quote
Old 04-25-13, 08:56 PM  
10leej
A Flamescale Wyrmkin
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 132
File comments: 207
Uploads: 10
Been playing around with this a bit, great way to cleanup some macro space though I wonder if I can make it work with Choonster's SpellID Buttons addon. Course it should but I haven't tested it. Anyways great work be done here.
__________________
Check out my Addons
Live Stream
10leej is offline Report comment to moderator  
Reply With Quote
Old 04-24-13, 05:25 AM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 423
File comments: 197
Uploads: 79
Originally Posted by Resike
Is there any way to make a change like, when the box only contains 2 spell, and you push the button down for like 3 second then they swap eachother? Or when contains more then 3 spells then just cycle swap them maybe.
Anything time-related is off limits in combat, unfortunately. Blizzard even wrote a hover manager so addons can't be aware of time passing in secure code.

It can be done with a modifier key, like a /select macro in a button bound to "F" could cycle through its menu on "Alt+F". But that would naturally bump against the button's bindings themselves.
Gello is offline Report comment to moderator  
Reply With Quote
Old 04-24-13, 04:00 AM  
Resike
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 179
File comments: 143
Uploads: 10
Is there any way to make a change like, when the box only contains 2 spell, and you push the button down for like 3 second then they swap eachother? Or when contains more then 3 spells then just cycle swap them maybe.
Last edited by Resike : 04-24-13 at 04:01 AM.
Resike is offline Report comment to moderator  
Reply With Quote
Old 04-20-13, 03:30 AM  
Devius
A Kobold Labourer

Forum posts: 0
File comments: 99
Uploads: 0
New version works perfectly.
Not loosing the icons anymore
Thanks for the update.
Devius is offline Report comment to moderator  
Reply With Quote
Old 04-19-13, 01:04 PM  
GeneralWurst
A Defias Bandit

Forum posts: 2
File comments: 80
Uploads: 0
Originally Posted by Gello
Originally Posted by GeneralWurst
How can i change the macro icon of the select macro?

Whenever i select an icon its changed back to the "?" icon.
Once you leave the macro window, the "?" should change to the first item or spell in the list if it finds one. Is it not doing that for you?

Or are you asking to override that behavior so you can choose a fixed icon? Truth to tell I never considered anyone wanting a fixed icon. It can probably be done but this version will want to change the icon to whatever is currenly loaded into the button.
Sorry to be unclear, yes i meant choosing a fixed icon.

Thanks for the quick answer!
GeneralWurst is offline Report comment to moderator  
Reply With Quote
Old 04-19-13, 06:10 AM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 423
File comments: 197
Uploads: 79
Originally Posted by GeneralWurst
How can i change the macro icon of the select macro?

Whenever i select an icon its changed back to the "?" icon.
Once you leave the macro window, the "?" should change to the first item or spell in the list if it finds one. Is it not doing that for you?

Or are you asking to override that behavior so you can choose a fixed icon? Truth to tell I never considered anyone wanting a fixed icon. It can probably be done but this version will want to change the icon to whatever is currenly loaded into the button.
Last edited by Gello : 04-19-13 at 06:11 AM.
Gello is offline Report comment to moderator  
Reply With Quote
Old 04-19-13, 04:02 AM  
GeneralWurst
A Defias Bandit

Forum posts: 2
File comments: 80
Uploads: 0
How can i change the macro icon of the select macro?

Whenever i select an icon its changed back to the "?" icon.
GeneralWurst is offline Report comment to moderator  
Reply With Quote
Old 04-18-13, 10:49 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 423
File comments: 197
Uploads: 79
2.0.11 just posted doesn't have any huge changes on the surface but there's a bit under the hood that's changed. I'm hopeful it will be just as stable as the previous version. If you encounter any bugs please let me know what bar addon you use (if any). I had hoped to solve the pet issue by now and moved on to making [conditional]s work, but setting an arbitrary icon in combat has proved a bigger hurdle than expected. On the bright side, if you don't mind the icon not working, /select pet:favorite (or /select pet:Case-Sensitive Name or /select pet:any) do work even if it's not totally supported yet.

If you're using 2.0.6, you can install this update while logged in but keep in mind it won't start remembering what you had last loaded into your /select macros until you've exited the game. After that it should remember on a reload/logout.
Gello is offline Report comment to moderator  
Reply With Quote
Old 02-27-13, 03:42 AM  
Devius
A Kobold Labourer

Forum posts: 0
File comments: 99
Uploads: 0
Thanks for testing it out. It's not a deal breaker for me so I'm going to keep using this version as I have done so for all this time. Still would be nice if it could get fixed
Devius is offline Report comment to moderator  
Reply With Quote
Old 02-26-13, 12:31 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 423
File comments: 197
Uploads: 79
Thanks for the info. This was tested pretty thoroughly in BT4 and this is the first report of that behavior. Is anyone else experiencing this? If so do you use BT4 also?

This addon's last posted update was two days after the major rewrite. That initial rewrite is still available as 2.0.5 in the "other files" tab if you're still interested but I totally understand giving up by now. I honestly doubt it will work better than the most recent one posted here. And of course the version prior to that was from 2008 four years earlier.

I have another update I've been working on to support pets and item slots and equipment sets, but it's proven to be a huge technical challenge to make it "universal", so no guarantees that it will be soon or fix your problem.
Originally Posted by Devius
Yep before that update in september it was working fine, although it required the #showtooltip line on top.
Using Bartender 4 btw.
Gello is offline Report comment to moderator  
Reply With Quote
Old 02-26-13, 05:46 AM  
Devius
A Kobold Labourer

Forum posts: 0
File comments: 99
Uploads: 0
Yep before that update in september it was working fine, although it required the #showtooltip line on top.
Using Bartender 4 btw.
Last edited by Devius : 02-26-13 at 05:47 AM.
Devius is offline Report comment to moderator  
Reply With Quote
Old 02-20-13, 07:12 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 423
File comments: 197
Uploads: 79
Trying to reproduce this still, sorry for all the questions. What bar addon do you use, if any? And when you say 'since the last update', do you mean to say it was working ok with a previous version? This addon hasn't been updated since september 2012.
Gello is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: