Why does /target mouseover not work on unitframes? #913


Closed
  • nukmii created this issue Dec 14, 2020

    Recently I tried to work something out with a mouseover macro, and ran into a problem that the targeting part the of macro /target mouseover didn't work on unitframes, both Grid2 and Blizz RaidFrame. Is this some hard restriction from blizz? 

  • nukmii edited description Dec 14, 2020
  • michaelsp posted a comment Dec 15, 2020

    Both blizzard raid frames and grid2 are working fine here, tested with a simple macro like:

    /cast [@mouseover] Healing Wave

  • nukmii posted a comment Dec 15, 2020

    Yes, mouseover macro with spells are fine.

     

    Let me elaborate what I did:

    1. I looted tank trinket Bargast's Leash, which requires a target. I wanted to make it castable on mouseover target, so I started with a macro:

    /use [@mouseover] 13

    but it didn't work.

     

    2. I thought maybe it was because trinkets are not like spells, so I wrote the macro in another way:

    /target mouseover

    /use 13

    /targetlasttarget

     

    3. Upon test, macro#2 worked when mouseover teammate model, but didn't work when mouseover Grid2 or RaidFrame. Further tests showed that  /target mouseover  couldn't work on unitframes, hence the ask.

     

    4. I have a workaround though, using Clique to bind the macro /use [@mouseover] 13  to a key. It works with Clique but I also don't know why.

  • michaelsp posted a comment Dec 16, 2020

    As far as i know, /target mouseover must target any npc or player with the name "mouseover".

    Anyway this issue is not related to Grid2.

  • nukmii posted a comment Dec 16, 2020

    /target mouseover and /focus mouseover are all legit mouseover macros.  It absolutely can work on in-game models. I just want to know why it doesn't work on Grid2. 

     

    But if this is beyond the scope of your interest then I'll ask somewhere else.

     

    Thanks for your time!


    Edited Dec 16, 2020
  • michaelsp posted a comment Dec 16, 2020

    It's simply beyond the scope of my knowledge, wow macro system is not necessary to code addons, i never spent time learning all the internals of the macro system.

  • nukmii posted a comment Dec 16, 2020

    Forgot to close this. Thx again!

  • nukmii closed issue Dec 16, 2020

To post a comment, please login or register a new account.