/click Macros broken?

My macros that I use on all of my toons are broken

/click works if you type it out but not when it is in a macro from what I can tell

Is this about to to fixed?

1 Like

When do you use /click in a macro? Like do you have some examples that you’re using that are failing?

Also, there is a macros and ui forum.

2 Likes

/click is protected and must be accompanied by a hardware event. If you actually have this macro on your action bar and you are using a keybind to activate it, you can disregard; however, if you are automating a macro through a weak aura or some other addon, then it won’t work.

Some people have macros like /click StaticPopup1Button1 to have a keybind to hit standard pop up buttons like “Are you sure you want to delete this?” prompts.

2 Likes

mine are working

2 Likes

For example

Click Macro:
/click [pet:felhunter] ActionButton1
/click [pet:succubus] ActionButton2

Felhunter macro located on actionbutton1:
/use [mod:shift,@arena1][mod:alt,@arena2] Spell Lock

Succubus macro on actionbutton2:
/use [mod:shift,@arena1][mod:alt,@arena2] Seduction

These are not exactly the macros or action buttons I use but the point is that macros that worked yesterday do not work today

1 Like

I’ve noticed times when the item slot numbers changed for a couple of days/weeks, and I had to update some weapon swap or use trinket macros.

It might be temporary.

:woman_shrugging:

2 Likes

Yes, my trinkets/gloves/etc. are baked into cd’s, and I use /click to manage it. Main reason is because my trinket button is a cast sequence button, but I needed additional logic that /castsequence doesn’t support, so it’s its own button that I manage with /click - and, it hasn’t been working. I was going to deep dive the problem this weekend.

2 Likes

Please let us know if you figure out what’s going on.

I’ve spent a lot of time managing addons and macros etc to make the game playable and I’m hoping my cata career didn’t just end

2 Likes

I don’t have good news so far, but I have bad news during my troubleshooting
Part of the way I figure out where to point my /click macro is to run
/script print(GetMouseFocus():GetName())
on the button I’m going to use, to get the name. Unfortunately, this script seems broken now as well.
I will update if I manage to fix these things, but overall, seems more macros than I thought are broken.

edit: putting /click into my chatbox works, but does not work when I place it into a macro alongside other commands/scripts. My impression is that activating multiple macros with one button is blocked somehow.

2 Likes

This behavior was changed intentionally to nerf automation.
More context: https://github.com/Stanzilla/WoWUIBugs/issues/552

3 Likes

Hey, Snipy just figured out GetMouseFocus() doesnt work talking about someone else’s macro problem.

3 Likes

The OP doesn’t seem to be referencing the API change of GetMouseFocus to GetMouseFoci, but rather something about using /click for macros using ActionButton1, etc.

Though, since it was also stated that:

this is possibly rather unhelpful information for troubleshooting assistance.

What Gnàrr is referencing also appears to be unrelated to any /click functionality which is the topic of this thread. But is related to the API change…

Would of course work if using the updated API call to GetMouseFoci instead, i.e.

/script print(GetMouseFoci()[1]:GetName())

With regards to /click, I’m unfamiliar with it, but a quick test shows that you can make a macro like /click ActionButton1 to click whatever is bound to your Action Bar button1, etc. and that that seems to work with some things like Cooking, or a mount, etc. but not with running another script (macro).

As an example (I don’t know why you might want to do this, but I was trying to think of a situation where you might), you could do something like having Fishing bound to ActionButton1 and a mount to ActionButton2. You will cast fishing if you have no mouseover, and cast your mount if you have a mouseover target:

/click [target=mouseover,exists] ActionButton1; ActionButton2

This won’t work if instead of dragging fishing from my spellbook to my action bar, I make a macro and put it there instead:

/cast Fishing

It does appear that the change to /click is noted for 11.0.2 in whatever Wiki this is that is documenting them: https://warcraft.wiki.gg/wiki/Patch_11.0.2/API_changes

“All macros (real and macrotext-based) can no longer chain macros. One macro cannot /click a button that would execute another macro”

:woman_shrugging:

2 Likes

Thank you for your insights everyone.
I’m not going to swap my pet macros mid combat every time I change my pet

Or fix the 200+ macros I use across my characters

Anyone know a good mop private server?

1 Like

You might not have to. I use pet conditionals in some macros, which might work for you…

Something like:

 /cast [pet:pettype1] skill1; [pet:pettype2] skiil2; defaultskill1

Might work for your use case.

Like looking at the example you gave, you could use /cast instead of /click and the name of the spell rather than the actionbar location.

/cast [pet:felhunter] SpellName
/cast [pet:succubus] SpellName
1 Like

Can you combine these and stay in the character limit?

#showtooltip Seduction
/click ActionButton7
/use [mod:shiftaltctrl,harm][mod:shiftalt,@focus][mod:shiftctrl,harm][mod:altctrl,@arena3][mod:shift,@arena1][mod:alt,@arena2][mod:ctrl,@mouseover][@mouseover,harm][harm] Seduction
/click ActionButton9

#showtooltip Spell Lock
/click ActionButton7
/use [mod:shiftaltctrl,harm][mod:shiftalt,@focus][mod:shiftctrl,harm][mod:altctrl,@arena3][mod:shift,@arena1][mod:alt,@arena2][mod:ctrl,@mouseover][@mouseover,harm][harm] Spell Lock
/click ActionButton9

/click ActionButton8
/use [mod:shiftaltctrl,help][mod:shiftalt,@focus][mod:shiftctrl,help][mod:altctrl,@party3][mod:shift,@party1][mod:alt,@party2][mod:ctrl,@player][@mouseover,help][help] Singe Magic
/click ActionButton9

#showtooltip Suffering
/click ActionButton7
/use [mod:shiftaltctrl,harm][mod:shiftalt,@focus][mod:shiftctrl,harm][mod:altctrl,@arena3][mod:shift,@arena1][mod:alt,@arena2][mod:ctrl,@mouseover][@mouseover,harm][harm] Suffering
/click ActionButton9

1 Like

Maybe? That’s a ton of modifiers! I see what you’re doing though, and that’s a pretty interesting use-case…

I don’t use modifiers like that in my macros personally, because I use them for keybinds, so I haven’t really explored this type of thing and don’t really want to download a PTR if it’s even still up to test, but I think it’s likely do-able, or at least close…

On the one hand, you could do something like:

/cast [pet:felhunter] Spell Lock; [pet:succubus] Seduction; [pet:voidwalker] Suffering

But if you wanted to add all the modifiers to each of those, you’ll go way over the character limit…

On the other hand, if you have the pet skill on your pet action bar, in the same location, you could use something like:

/click PetActionButton4

assuming it’s the 4th button for each.

I don’t think the modifier keys work for /click anymore, if they did before… otherwise, you could maybe just do:

/click [mod:shiftaltctrl,harm][mod:shiftalt,@focus][mod:shiftctrl,harm][mod:altctrl,@arena3][mod:shift,@arena1][mod:alt,@arena2][mod:ctrl,@mouseover][@mouseover,harm][harm] PetActionButton4

but I don’t think those mods will work at all with /click and PetActionButton4 won’t work with /cast

Anyway, I’m not sure what the best way to do this would be. I could see one path being to break it out into multiple macros using keybinds for different modifiers that you have, which would clean up a lot of the characters using mods, but you’d just be replacing them with pet conditionals anyway…

I also came across this related mmo-champion thread from 2013 that explains that using /click [mod:shift] PetActionButton4 does work, but it shift-clicks it, which pulls it out and puts it at your mouse tooltip. The last response in that thread suggests changing the default behavior of shift clicking it!

https://www.mmo-champion.com/threads/1268509-Macro-help-click-PetActionBar1-with-focus-target-(PvP)-possible

:woman_shrugging:

2 Likes

Its quite common to have at least three modifiers among pvpers. This has been my playstyle for years and I find its the most fluid. I rarely have the same spell keybound twice. There is no need as my macro modifiers still work. I’m almost certain I developed them on retail, working, and they worked on every version of wow I tried after that. I can’t say for sure but I don’t think /click macros are working on classic (vanilla era) anymore either.

When using petactionbuttons, the only way that I know to use @mouseover, arena1, etc, is to first
/target [nomod,@mouseover,harm][mod:shift,@arena1][etc]
then /click petactionbutton#
followed by /targetlasttarget assuming you want to resume targeting the first target.
This causes some issues that I can’t recite. Probably from feign death, dead targets and more. This also probably doesn’t work anymore.

I belive that’s the case :frowning:

Well the best way was working before the new patch.
I’m sure there’s a technical reason they can’t, but it would be nice to just set in the options menu which modifiers cause a keybound spell to be cast on an alternative target. If you used a dropdown menu for shift to select @mouseover,arena1,etc then any spell you put on any keybind will always cast said spell at arena1 (if chosen over the other target options) when pressing shift. This would come close to eliminating my need for macros and would bring more control to players who don’t want to invest time into macros.

I’ve had to relearn this lesson recently. I forgot what the fix was and rediscovered it the other week. For anyone dealing with this issue go into Options/Gameplay/Action Bars. If your have “Lock Action Bars” checked on then in the dropdown menu make sure your modifier to unlock your bars is set to “none”
Whichever modifier you have selected will give you issues when using /click PetActionButton macros.

3 Likes

Yeah, like some universal settings. That does indeed sound like it would be a useful option to have.

Like this one for example, you could say whenever you cast while holding shift and alt, you would cast at your focus target, and you wouldn’t need to specify that on a per-macro basis.

[mod:shiftalt,@focus]
2 Likes

I’ve submitted this idea into the suggestion box a time or two in the past few years.
I would just add that alternative targets should include @nearestenemytarget, @nearestfriend, @nearestfriendplayer, @nearestenemyplayer.

Though that reminds me… It would be nice to have a few more advanced options so you can use your drop down menu modifiers on alternative targets say for [@help], while with the same helpful spell keybind, use a harmful spell with no modifiers.
To be clear, I mean to have the same functionality as given by
/use [mod:shift,@party1][mod:ctrl,@player][help]Holy Light; Judgement

2 Likes

I’ve noticed the /click function was broken for Cataclysm but it was specifically for profession window craft.

3 Likes