in your browser.
Marking targets the fastest way
Return to board index
Correct me if I'm wrong but doesn't SetBindingMacro only accept macro ID or name?
@Wanderingfox: No, it's a global. Otherwise you couldn't use it multiple times.
@ RedwoodElf: True, but properly coded addons wouldn't use such a name anyway.
SetBindingMacro("key", "macro text")
SetBindingMacro = SetBinding("key", "MACRO " .. "macro text")
As for CM being a local, I missread the macro when I looked at it, I thought there was a coma after that table deceleration, looking back there isn't one. My bad :3
edit: Or at least that's how it used to work, I haven't really toyed around with it since 2.0-2.1ish
Usage: SetBindingMacro("KEY", "macroname"|macroid)So I'm thinking no.
That used to work just fine, they must have changed it and I didn't catch the API change.
Just curious, but does /run SetBindingMacro('F1', '/script SetRaidTarget("mouseover",1)') work? I may have just gotten my syntax borked.
In any case, you can't use a local to "remember" values between keypresses...local variables become undefined once the /run or /script line is finished. It HAS to be global to be persistant.
You are not logged in. Please
to post a reply or
if you don't already have an account.
Connect with Wowhead
Other Fanbyte Sites
Hearthstone Top Decks
Final Fantasy XI
© 2021 Fanbyte