New API
LearnTalent(talentID)
LearnTalents(talentID1 [, talentID2, ...])
Talent IDs can be found from this paste I just made. Just Ctrl+F to find em.
http://pastebin.com/k8HhqJUD
Code:
/click PlayerTalentFrameTalentsTalentRowXTalentX
/click StaticPopup1Button1
/run LearnTalent(talentID)
Just gotta replace the X with your row and talent column and figure out the correct talentID!
Kinda sucks but that's the way blizz made it.
- - - Updated - - -
From those macros you had up there. Here are some quickies
Code:
#showtooltip Elemental Blast
/click PlayerTalentFrameTalentsTalentRow6Talent3
/click StaticPopup1Button1
/run LearnTalent(19267)
Code:
#showtooltip Primal Elementalist
/click PlayerTalentFrameTalentsTalentRow6Talent2
/click StaticPopup1Button1
/run LearnTalent(19266)
Just make sure you have loaded the talent frame before. But I'm sure you knew that.
You can also make a macro to do that for you as well to get it to the talents page
Code:
/run LoadAddOn("Blizzard_TalentUI")
/run PlayerTalentFrame:Show()
/click PlayerTalentFrameTab2