Click bars and virtual mapped key loop
This question concerns virtual mapped keys and click bars. I'm playing Lotro but don't think it would be restricted to that game so I'm placing the question here.
What I'm trying to do is set up healing click bars that use the native UI unit frames as their "base." This gets a bit tricky because in this game, the order of the group changes in the frames depending on which slot is in focus.
For example, on the group leader's box (slot 1):
- Target Slot 1 -> F1, Target Slot 2 -> F2, Target Slot 3 -> F3, Target Slot 4 -> F4, Target Slot 5 -> F5, Target Slot 6 -> F6;
- Target Slot 1 -> F2, Target Slot 2 -> F1, Target Slot 3 -> F3, Target Slot 4 -> F4, Target Slot 5 -> F5, Target Slot 6 -> F6;
- Target Slot 1 -> F2, Target Slot 2 -> F3, Target Slot 3 -> F1, Target Slot 4 -> F4, Target Slot 5 -> F5, Target Slot 6 -> F6,
And the frames used for the group reflect this. The setup wizard for the game is smart enough to put in the proper variable keystrokes for targeting/following.
Now I'm trying to do a similar thing with click bars and mapped keys. I've set up a click bar which sits over the frames, 1 column wide by 6 rows high. For slot 1, the Alt-Left Click for button 1 (top button, sitting over the leader) is mapped with this action:
- Do Click Heal Row1 Left Alt in LOTRO Healing Keys Key Map -> self
All well and good. Standard virtual click healing key map stuff. Do the same thing for the Alt Left key all the way down the click bar.
- Button 2: Do Click Heal Row2 Left Alt in LOTRO Healing Keys Key Map -> self
Button 3: Do Click Heal Row3 Left Alt in LOTRO Healing Keys Key Map -> self
Button 4: Do Click Heal Row4 Left Alt in LOTRO Healing Keys Key Map -> self
Button 5: Do Click Heal Row5 Left Alt in LOTRO Healing Keys Key Map -> self
Button 6: Do Click Heal Row6 Left Alt in LOTRO Healing Keys Key Map -> self
So, in slot 2, for example, I need to do this in the Virtual Key Maps:
- Click Heal Row1 Left Alt in LOTRO Healing Keys Key Map is now Click Heal Row2 Left Alt in LOTRO Healing Keys Key Map
Click Heal Row2 Left Alt in LOTRO Healing Keys Key Map is now Click Heal Row1 Left Alt in LOTRO Healing Keys Key Map
You can guess what happens: nuclear meltdown, infinite loop, crashes and much gnashing of teeth. As soon as I hit left alt mouse on button 1, it fires off Click Heal Row1 Left Alt, which is now really Click Heal Row2 Left Alt. But Click Heal Row2 Left Alt is really Click Heal Row1 Left Alt...and round and round we go. Suffice it to say, Lotro crashes, as well it should.
So, how do I get around this? Do I need to set up 6 individual click bars--one for each slot? Is there any more elegant way to do it? Maybe somehow taking advantage of the Variable Keystrokes?