I don’t think you can do that with the WoW API. You can set a key to manually target or auto target (targetenemy, startattack) but it only allows you to one target at a time. I think because of how the API is you can only set something once and it has an internal cool down before you can set another target. I’ll have to look at the API code later in the week to confirm, but from what I remember when I was writing addons, that wasn’t allowed.
Hello Beresford. It can be difficult to achieve the specific way you mentioned on the first post, if not impossible. Now I can try to replicate that with code but I’m not sure if it would work how you want it.