I am using two WoW accounts. On my main I have spells on Top Action Bar with hotkeys F1-F5. When I use these hotkeys it casts a spell and my slave targets focustarget and casts the same. What I need is for when I alternate and essentially make my slave the main, to reassign the spells on my main (F1-F5) in the Top Action Bar to be macros that cast the same spell, but first target my slave's target.

So far I've only found macros to switch the default action bar pages 1-4. But I need to switch the Top Action Bars. I am using HotKeyNet.