Mouseover Enchant Macro

After looking through some of the forum posts saying that the Enchanting macros were not working ingame, I decided to dig a little myself into the subject. It was true that the game was reading 2 (if you had 2 trained) professions when using some of the API commands. The problem was that the Enchanting window was not registering the same as other profession windows, which is the point the macros would break.

This lead me down a rabbit hole to find what API command could work around this problem. After many failures, I came across a nifty macro.

/script print(GetMouseFocus():GetName())

This handy little macro printed out what ever your mouse was hovered over while ingame. That’s when I found a command name I hadn’t seen before “CraftCreateButton”. Interesting. It was after I typed this with a /click command that everything clicked.

/click CraftCreateButton
/run GetMouseFocus():Click()
/click StaticPopup1Button1

After running the macro, and seeing it actually work, it was amazing. What this does is while the enchanting window is open, whatever enchant is selected in the window, it will enchant the current item that the mouse is placed over. This mainly works when you are leveling your enchanting, as it is intended to overwrite an old enchant.

Lastly I haven’t tested this outside leveling enchants, but there should be a command to bypass popup windows when enchanting items in trade window. You might also get a error popup if you try to use the command when not hovering over a piece of gear to enchant, but no big deal.

22 Likes

Thank you so much for this!

1 Like

This macro is such a time saver.
Thank you!

As of this date the macro no longer works

1 Like

This works perfectly as of 8/8/20, and you sir need a Nobel prize.

doesn’t work for me even with all addons disabled. Running /click CraftCreateButton does nothing, I have it bound to a key. For example I tried creating an enchant with the craft window open and it didn’t even make the cursor glow

1 Like

It works! Leveling enchanting for TBC ez.

thansks man,great macro’s <3

Thanks! This helped me figure out what I was looking to accomplish.

For those that don’t want to waste the enchants you can use these commands to enchant to an Enchanting Vellum instead.

Create a macro and bind it to a key.

/run GetMouseFocus():Click()
/use Enchanting Vellum

Open the enchanting window and pick the enchant you want to use.
Place your mouse (and leave it there) over the “Enchant” button and hit the key the macro is bound to and it will enchant it to a Vellum instead. :slight_smile:

Hope this helps someone as well.
This was tested in WoW BFA on 08/26/2022.