This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Marking targets the fastest way
Post Reply
Return to board index
Post by
HighFive
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.
Post by
Wanderingfox
SetBinding("key", "name")
SetBindingMacro("key", "macro text")
SetBindingMacro = SetBinding("key", "MACRO " .. "macro text")
http://www.wowwiki.com/API_SetBinding
http://www.wowwiki.com/API_SetBindingMacro
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
Post by
HighFive
Usage: SetBindingMacro("KEY", "macroname"|macroid)So I'm thinking no.
Post by
Wanderingfox
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.
Post by
RedwoodElf
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.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.