A selection of useful wow macros for the warlock class.

Shadowlands all pet cc in one

#showtooltip
/use [pet:imp, mod:shift, @player] Singe Magic
/use [pet:imp, @mouseover,exists] Singe Magic
/use [pet:succubus] Seduction
/use [pet:felhunter] Spell Lock
/use [pet:felguard] Axe Toss
/use [pet:voidwalker] Shadow bulwark

All pet cc abilities in one.

Shadowlands affliction tier 4 talents

#showtooltip
/use [talent:4/2] Phantom Singularity; [talent:4/3,@cursor] Vile Taint

Depending on your talent choice cast Phantom Singularity
on target or Vile Taint at your cursor position.

Shadowlands Warlock tier 5 talents

#showtooltip
/cast [talent:5/2] Mortal Coil; [talent:5/3] Howl of Terror

Depending on your talent choice cast Mortal Coil or howl of Terror.

Warlock havoc macro

#showtooltip Havoc
/cast [@mouseover,harm] Havoc; [harm] Havoc

Cast Havoc on your mouseover target else on your target.

Warlock Teleport macro

#showtooltip
/cast [mod:alt] Demonic Circle(Summon); [nomod] Demonic Circle: Teleport(Teleport);

Use teleport or summon teleport holding alt.

Fear target or fear focus macro

#showtooltip Fear
/cast [mod:shift,@focus] Fear; Fear;

Fears your target or fears your focus when holding down shift.

Wow Classic macros

Focus fear macro

/clearfocus [modifier]
/focus [target=focus,noexists]; [target=focus,dead]
/clearfocus [target=focus,help]
/cast [target=focus, exists, harm][] Fear

Set your target as focus and cast fear on focus target.
Press Shift,Ctrl or Alt to clear your focus.

Wow classic all pet casts in one

#showtooltip
/cast Fire Shield(Rank 5)
/cast Sacrifice(Rank 6)
/cast Spell Lock(Rank 2)
/cast Seduction

Will cast the ability of an active pet on the target if possible.

Classic Burning Crusade pets macro

#showtooltip
/clearfocus [modifier]
/focus [target=focus,noexists]; [target=focus,dead]
/clearfocus [target=focus,help]
/cast [target=focus,exists,harm][pet:succubus]Seduction;
[pet:voidwalker]Sacrifice;[pet:felhunter]Spell Lock;[pet:felguard]Intercept

Set your target as focus and use your pet ability.
Press any modifier + macro to clear your focus.

Drain mana or drain life

#showtooltip
/stopcasting
/cast [modifier:alt] Drain Mana; Drain Life

Drain life by pressing macro or drain mana while pressing alt+macro.

Life tap or Dark pact

#showtooltip
/stopcasting
/cast [modifier:alt] Life Tap; Dark Pact

Dark pact by pressing macro or Life tap while pressing alt+macro.

Spammable drain life macro

#showtooltip Drain Life
/cast [nochanneling: Drain Life] Drain Life

Only casts Drain life when you're not casting it. You can replace Drain life with any other channeling spell.(drain mana, drain soul)

Spammable wand

#showtooltip
/cast !Shoot

You can spam your shoot button.

Wow Classic self bandage macro

#showtooltip Wool Bandage
/cast [target=player] Wool Bandage

Change wool bandage with the best bandage you can craft.

Delete excess soul shard macro

/cast Drain Soul(Rank 1)
/run local a=GetBagName(4); if a=="Core Felcloth Bag"or a=="Felcloth Bag"
or a=="Soul Pouch" or a=="Box of Souls" or a=="Small Soul Pouch" then
PickupContainerItem(4,GetContainerNumSlots(4))
DeleteCursorItem() else end

This macro deletes excess soul shard in bag 4 (most left bag)

Older macros , some might be outdated:

Legion multi talent curse pvp macro

#showtooltip
/cast [pvptalent:3/1] curse of tongues; [pvptalent:3/2] curse of weakness; [pvptalent:3/3] curse of fragility

Cast the talent you selected in the tier 3 honor talents.

Warlock pet abilities in one macro

#showtooltip [talent:6/2, pet:felhunter] spell lock; [talent:6/2, pet:succubus] seduction; [talent:6/3, pet:felhunter; nopet] spell lock; command demon
/cast spell lock
/cast command demon
/cast seduction

Use any pet ability regardless of summoned pet.

Pitlord Fel Flame Breath macro

#showtooltip Fel Flame Breath
/cast [@player] Fel Flame Breath

Pitlord Casts Fel Flame Breath at you to remove 1 harmful magic effect every second.

Kanrethad Ebonlocke Charge macro

#showtooltip Charge
/target Kanrethad
/cast Charge

Enslaved Pitlord targets Kanrethad and casts Charge.

Mists of pandaria warlock macro

#showtooltip Dark Regeneration
/cast Dark Regeneration
/use Healthstone

Casts Dark Regeneration (healing + 25%)and uses healthstone.

Mop warlock pet ability macro

#showtooltip
/use [pet:imp, mod:shift, @player] Singe Magic
/use [pet:imp, target=mouseover,exists] Singe Magic
/use [pet:fel imp] Sear Magic
/use [pet:succubus] Seduction
/use [pet:Observer] Optical Blast
/use [pet:felhunter] Spell Lock
/use [pet:felguard] Axe Toss
/use [pet:voidwalker] Sacrifice

Every pet ability in one button.

World of Warcraft Soul Swap macro

#showtooltip
/cast [mod:shift, @focus] [ ] Soul Swap

Wow warlock Cataclysm Soul Swap focus macro .

Warlock Metamorphosis macro

#showtooltip [form:0] Metamorphosis
/cast [form:0] Demon Soul
/cast [form:0] Metamorphosis
/castsequence [form:2] reset=30 Immolation Aura(Metamorphosis), Demon Leap(Metamorphosis)

Wow warlock 4.3 macro that casts demon soul and Metamorphosis on first click, Immolation Aura and Demon Leap on second and third click.

Cataclysm voidwalker sacrifice macro

#showtooltip
/use [pet:Voidwalker] Sacrifice
/use Soulburn
/use [mod:shift] Summon Voidwalker; [mod:ctrl] Summon Succubus; [mod:alt] Summon Imp; Summon Felhunter

Wow warlock Cataclysm macro that sacrifices your voidwalker and uses soulburn to insta summon a new pet of your choice.

Cataclysm imp Singe Magic macro

#showtooltip
/cast [@player] Singe Magic

Wow warlock 4.3 macro that removes an hostile magic off of yourself.