Hi all
After playing around for a while I decided to approach this problem in a different way.
I now check to see if the keybinding is set, if not I add it.
It does not write it to the
bindings-cache.wtf file; instead it sets it upon login and
/reload.
Here is my function;
Lua Code:
local function ensureDefaultKeybinds()
local key1, key2
key1,key2 = GetBindingKey("AVKRUNADDITEMTOGLOBALLISTFUNCTION")
if not key1 and not key2 then
SetBinding("ALT-F9","AVKRUNADDITEMTOGLOBALLISTFUNCTION")
end
key1,key2 = GetBindingKey("AVKRUNADDITEMTOCHARACTERLISTFUNCTION")
if not key1 and not key2 then
SetBinding("ALT-F10","AVKRUNADDITEMTOCHARACTERLISTFUNCTION")
end
key1,key2 = GetBindingKey("AVKRUNADDITEMTOGLOBALPROTECTLISTFUNCTION")
if not key1 and not key2 then
SetBinding("ALT-F11","AVKRUNADDITEMTOGLOBALPROTECTLISTFUNCTION")
end
key1,key2 = GetBindingKey("AVKRUNADDITEMTOCHARACTERPROTECTLISTFUNCTION")
if not key1 and not key2 then
SetBinding("ALT-F12","AVKRUNADDITEMTOCHARACTERPROTECTLISTFUNCTION")
end
end
This is most likely the nasty/inefficient solution but it gets me to where I need to be.
Any advice or better solutions would be great, but if not I will just keep playing with this and report back when/if I find a better solution.
Cheers