Help with cancelaura macro - WoWInterface
Thread Tools Display Modes
09-25-17, 05:41 AM   #1
A Theradrim Guardian
Benalish's Avatar
Join Date: Dec 2012
Posts: 60
Help with cancelaura macro

I'm trying to make an auto-cancelaura macro. This is my attempt

Lua Code:
  1. /script local function cancelauraOnUpdate(self) CancelUnitBuff("player", "Path of Frost") end; local f = CreateFrame("frame"); f:SetScript("OnUpdate", cancelauraOnUpdate)

How to disable the macro, for example, by right-clicking?

Thanks in advance
  Reply With Quote
09-25-17, 09:18 AM   #2
A Pyroguard Emberseer
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,135

Seems pretty simple!
  Reply With Quote
09-25-17, 11:44 AM   #3
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,796
You can't do this automatically. The function is protected and requires a hardware event.

What Blizzard will let you do is what myrroddin linked. But you still need to actually use it.
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Help with cancelaura macro

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off