Download
(19 Kb)
Download
Updated: 09-04-14 07:50 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:09-04-14 07:50 PM
Created:11-08-08 12:23 PM
Downloads:5,704
Favorites:157
MD5:
Categories:Action Bar Mods, Bags, Bank, Inventory
5.4
Select  Popular! (More than 5000 hits)
Version: 2.3.1
by: Gello [More]
This addon adds the /select macro command you can use instead of /use or /cast to use an item or spell among a list. Right-clicking your macro from the bars will pop out a menu where you can change the item or spell to use.

New in 2.3.0
  • Searches (ie type:food) are now case-insensitive.
  • Spells with charges now display their charges on flyout buttons.
  • All /selects are now state-driven instead of only those with a [condition].
  • /select [conditions] without a met condition are now handled cleanly.
  • Options panel reworked.
  • For users of Select Favorite Mounts, mount:favoriteflying changed to mount:favflying; mount:favoriteland changed to mount:favland.

How to Use
  • Create a macro with this line: /select 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 to 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. Now the macro will display and cast Commanding Shout.

You can also embed the /select within a larger macro. For mages:
/focus [@focus,noexists][@focus,dead][mod:alt]
/select [@focus,exists][] Polymorph, Polymorph(Turtle), Polymorph(Rabbit), Polymorph(Black Cat)
This is a standard focus-sheep macro. When you want to change what polymorph spell to use, right-click the macro on your bars and pick another. It will use that new polymorph until you decide to change it again.

Search:Keywords

To help add items and spells to your /select macros, search:keywords are usable in place of an item or spell name. These search through your bags and spellbooks to fill the flyout with items and spells that match the keyword(s).

The officially supported searches are item, spell, mount, type and profession:

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

spell:id or partial name
Add a spell by its numerical id or all spells that contain the partial name.
Examples: spell:1234, spell:Shout, spell:Polymorph

mount:flying, land, favorite*, favflying*, favland* or partial name
Add all flying, land, favorite, favorite flying, favorite land mounts or mounts that contain the partial name.
Examples: mount:flying, mount:Raptor, mount:favorite
* favorite-related keywords only work in WoD or if you have the Select Favorite Mounts addon in MoP.

type:ItemType
Add all items that contain the keyword in one of its type fields. See www.wowpedia.com/ItemType for a full list.
Examples: type:Quest, type:Food, type:Herb, type:Leather

profession:primary, secondary, any or partial name
Adds all primary professions, secondary professions or any professions.
Examples: profession:Primary, profession:Any, profession:Herb

[condition] support

Just like /cast and /castsequence, /select can use [conditions]. Every [condition] used by the macro system is supported. Some examples:

/select [flyable] Name of flying mount, Another flying mount; Name of land mount
/select [@focus,exists][] spell:Polymorph
/select [combat] Master Healing Potion, Healthstone; [nocombat] item:Food & Drink
/select [spec:1] Conjured Mana Cake, Cobo Cola; Conjured Mana Cake, Frybread
/select [nopet] spell:Summon Demon; Grimoire of Sacrifice


Macro length "tax"

To do its magic, Select needs to add a line like this to all macros that contain a /select command:
/click [btn:2]S001M;S001A
It will do this on its own and it will recreate this line if it's accidentally deleted or altered. You don't need to worry about it except to remember that when writing your /select macros your macro needs at least 26 characters free for it to add this line (if it's not already there).

Limitations
  • Only the first /select in a macro will be recognized. Any others in the same macro will be ignored.
  • 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 in the flyout until you leave combat.

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 Select should work with that button. However, if the macros are outside the game's standard macro slots, Select won't be aware of them.

Q: Can I add companion pets to /select?
A: Yes and no. There's a game limitation that prevent changing the icon easily. That said, pet:name, pet:favorite and pet:any work. But be aware it uses one icon for all pets.

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 you make the popout menu align to the action/macro button?
A: No, sorry. The secure methods to get the menu working in combat prohibits anchoring willy nilly.

If you have any suggestions, comments or bugs to report, feel free to post them in comments here. Thanks!
2.3.1, 9/4/14, fix for lua error when attempting to show tooltip of a spell no longer known
2.3.0, 8/29/14, rewrite, all /selects are state-driven, searches case insensitive, options panel reworked, full WoD mount support
2.2.0, 7/21/14, initial fixes for WoD beta
2.1.6, unreleased, made index,actionType local in Select_Menu.lua SetAction hooksecurefunc
2.1.5, 2/23/14, fix for handling of invalid/missing [condition]als
2.1.4, 2/20/14, fix for hyphenated item:searches
2.1.3, 1/14/14, fix for mounts not completely loading on login
2.1.2, 12/26/13, frames join UISpecialFrames only when they're shown (out of combat)
2.1.1, 9/11/13, toc update for 5.4
2.1.0, 6/22/13, semi-rewrite: state driver added, flyouts indexed by their list instead of their macro, DontSelectWithAlt option, item cache added,
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 (13)
File Name
Version
Size
Author
Date
2.3.0
18kB
Gello
08-30-14 04:14 PM
2.1.5
18kB
Gello
02-23-14 06:41 AM
2.1.4
18kB
Gello
02-20-14 12:38 AM
2.1.3
18kB
Gello
01-14-14 10:08 PM
2.1.2
18kB
Gello
12-26-13 06:11 AM
2.1.1
17kB
Gello
09-11-13 10:15 AM
2.1.0
17kB
Gello
06-22-13 04:46 PM
2.0.13
17kB
Gello
05-21-13 11:15 AM
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 12:23 PM


Post A Reply Comment Options
Unread 09-22-12, 01:03 PM  
dickloraine
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 34
Uploads: 9
Hi, I used the old select and hooked it, to make a mount macro, where you could select a flying mount by clicking and a ground mount by shift clicking. My question regards therefor the future plan, to allow macro conditionals. If and when you implement that, would it then be possible to do something like this:
Code:
/select mount:land [nomounted, noflyable]
/select mount:flying [flyable, nomounted]
/dismount [mounted]
and selecting both of the mount types differently, if the conditions are met?
dickloraine is offline Report comment to moderator  
Reply With Quote
Unread 09-22-12, 04:26 AM  
Devius
A Kobold Labourer

Forum posts: 0
File comments: 99
Uploads: 0
Great addon... been looking for something like this for a long time.
Anyway you can make so you can add another macro or a command (e.g. "/yell blah blah") in the select macros?
Devius is offline Report comment to moderator  
Reply With Quote
Unread 09-21-12, 10:53 PM  
Diet6
A Murloc Raider

Forum posts: 4
File comments: 11
Uploads: 0
This might be an odd request, but would it be difficult to add a "/select emote:any" type thing? Or some type of emote support?

Also, another feature that might be possible, is to make it so shift(or alt, or ctrl, or whatever) left/right click to boot people off passenger mounts. I tried to find a way to fit it into the macro and it didn't work.
Diet6 is offline Report comment to moderator  
Reply With Quote
Unread 09-21-12, 07:19 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 442
File comments: 324
Uploads: 97
2.0.5 is posted

Sorry it's been four years since an update to this addon. Hopefully you guys like this update.

Users of Select 1.0, you'll want to delete or edit your existing /select macros if you have any.

If you experience any problems please mention what action bar addon you use if any. It shouldn't matter from the universal approach this addon takes, but it would help me duplicate the error.
Gello is offline Report comment to moderator  
Reply With Quote
Unread 09-01-12, 06:24 AM  
pas06
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
MoP Update

Seems like Mop broke this addon a bit. My makro for Mounts is still working but my Shaman Shield button Makro does not work anymore(Water and Lightning Shield). When I am clicking on it nothing happens.
Is there any update planed?. I like this Addon
Last edited by pas06 : 09-01-12 at 06:24 AM.
pas06 is offline Report comment to moderator  
Reply With Quote
Unread 08-31-12, 07:04 PM  
todivine
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Wink pets macro

i am currently having an issue with the pets macro showing the pets but then i click on one it tells me i dont have that pet and that happened with all my pets i'm not having this issue with my mounts i'm not sure how to fix this but if anyone can help that would be awesome!
todivine is offline Report comment to moderator  
Reply With Quote
Unread 10-11-10, 04:49 PM  
Eisa
A Kobold Labourer
 
Eisa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 74
Uploads: 2
Re: Updates?

The bug re buttons being mismatched with icons seems to relate to the new toy robot pet bought in dalaran. I'm guessing it's because of the similarity in name. Pets listed before this pets slot open correctly.

You can fix the number of buttons exceeding screen by opening Select.lua and searching for

Code:
function Select.BuildMenu(button,menuType,menuCriterea)
About 8 lines below this is a line that says

Code:
if numEntries > 25 then
Change replace this line with

Code:
if numEntries > 100 then
  wraplimit = 10
elseif numEntries > 25 then
If you need this to kick in sooner than 100 pets then change "if numEntries > 100 then" to "if numEntries > 50 then".

I'm kinda hoping Hoern will fix these and other issues (such summoning by name issues I pointed out previously) in his update of Select found here
Last edited by Eisa : 10-11-10 at 04:50 PM.
Eisa is offline Report comment to moderator  
Reply With Quote
Unread 05-30-10, 03:09 PM  
Diet6
A Murloc Raider

Forum posts: 4
File comments: 11
Uploads: 0
Updates?

I know you weren't intending on touching this addon ever again but I had a few quick questions. Currently as soon as I got over a certain amount of pets the menu always selects the pet to the left of the one I click, also the menu goes above the top of the screen, not sure if these would be an easy fix or not. Also, is it possible to make it so I could have 2 buttons that work for mounts or pets, such as I can change them independently of each other (like, one for flying and one for land) currently if you make two different macros it will change both of them when you change one.
Thanks for the great addon!
If you know of any alternative that would accomplish the same thing lemme know.
Diet6 is offline Report comment to moderator  
Reply With Quote
Unread 11-26-09, 07:03 PM  
Eisa
A Kobold Labourer
 
Eisa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 74
Uploads: 2
Proposed changed to how Select handles pet/mount casting

Pet + mount handling could be made much more robust by replacing /cast <name> with /run CallCompanion(type,id). At the moment, Blizzard have created a few naming clashes between pets/mounts and the items used to learn them. E.g. /cast Onxyian Whelpling can refer to both the pet and the item used to add the pet to the companion list.

As I've pointed out in an earlier post, Blizzard have also created naming inconsistencies between the pet/mount names and the spells used to cast them e.g. /cast Summon Charger results in being summoned Thalassian Charger, while /cast Thalassian Charger doesn't work.

Using CallCompanion() removes any ambiguity. Gello's code loops through all of the companion id's so it should be quite a simple process of storing the id for use in a new macro template. Template substitution will need a bit of a re-think though. Any thoughts Gello?
Last edited by Eisa : 01-27-10 at 09:05 AM.
Eisa is offline Report comment to moderator  
Reply With Quote
Unread 11-05-09, 04:25 AM  
iConverge
A Defias Bandit

Forum posts: 3
File comments: 3
Uploads: 0
Great addon. My only question is if there is a way to differentiate the 2 trinket slots so I have one macro as trinket 1 and another as trinket 2? It would be especially helpful in cases where I need to switch to pvp trinks in both slots that both have triggered spells.

Like I can do with almost all slots:

/select item:INVTYP_HEAD for helms (fishing hat and chef's hat)

But not with individual inventory slots.

I thought maybe a workaround to switch between weapons and fishing pole would be /select tooltip:-Hand since those are the only common words in them. If i do /select tooltip:Hands it will bring up gaunts and /select tooltip:Speed will bring up my Potions of Speed with my weapons and ranged weapons.
iConverge is offline Report comment to moderator  
Reply With Quote
Unread 09-25-09, 11:43 AM  
Eisa
A Kobold Labourer
 
Eisa's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 74
Uploads: 2
Originally posted by jadakren
[b]consider this workaround I use for the 'Bronze Drake Mount' :
Code:
@line:165 - select.lua
mount = (mount == "Bronze Drake Mount" and "Bronze Drake" or mount)
<snip>
A much more elegant solution might be to insert the following at line 285 (so that the "end" line moves down to line 286:

Code:
button.entryName = (GetSpellInfo(spellId))
What this does is grab the spell name (e.g. Summon Charger), rather than use the companion name (e.g. Thalassian Charger). It should work for all mounts, including the Bronze Drake, although I've not tested this as I'm currently lurking around the Brewfest event field. Try it anyway. If it doesn't work just remove the line.

Happy hunting
Last edited by Eisa : 09-25-09 at 11:44 AM.
Eisa is offline Report comment to moderator  
Reply With Quote
Unread 03-12-09, 05:22 AM  
jadakren
A Flamescale Wyrmkin
 
jadakren's Avatar
AddOn Author - Click to view AddOns

Forum posts: 103
File comments: 114
Uploads: 2
Originally posted by Faraque
I get what you're doing with this addon, and I for one, think it's a great concept. I have a bug report for you however.

Macro:
#showtooltip
/cast [nobtn:2] Purple Hawkstrider
/stopmacro [nobtn:2]
/select companion:Mount

I am a paladin. One of my mounts is Summon Charger. Another is Summon Warhorse. The popup menu shows both of the horses. I select either one of them, and the macro does not update, as well as not functioning with whatever mount I had previously selected. I can simply choose another mount, and it will work fine. Of course, I'm a paladin though, I wanna ride my horsie!
consider this workaround I use for the 'Bronze Drake Mount' :
Code:
@line:165 - select.lua
mount = (mount == "Bronze Drake Mount" and "Bronze Drake" or mount)
I imagine you would need to do something like :

Code:
mount = (mount == "Summon Warhorse" and "Warhorse" or (mount == "Summon Charger" and "Charger" or mount))
jadakren is offline Report comment to moderator  
Reply With Quote
Unread 03-12-09, 05:17 AM  
jadakren
A Flamescale Wyrmkin
 
jadakren's Avatar
AddOn Author - Click to view AddOns

Forum posts: 103
File comments: 114
Uploads: 2
Originally posted by pacolecoco
Thank you very much for creating this addon! There are really very useful!
I have a suggestion for you, could you put the flying mounts from the others?
Not sure what you mean, because all mounts are listed in the companions mount list of your character screen and thus select will pull the list from there.
jadakren is offline Report comment to moderator  
Reply With Quote
Unread 02-25-09, 08:48 PM  
pacolecoco
A Kobold Labourer
 
pacolecoco's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
Thank you very much for creating this addon! There are really very useful!
I have a suggestion for you, could you put the flying mounts from the others?
pacolecoco is offline Report comment to moderator  
Reply With Quote
Unread 01-19-09, 12:59 PM  
Faerina
A Defias Bandit

Forum posts: 2
File comments: 27
Uploads: 0
Wonderful addon. question though is there a way to select weapons? I use this for my trinkets and my quest items but idk how to do it for items like my fishing pole and my main DPS weapon.
__________________
Skinners, Janitor of Skinnable Creatures
Faerina is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: