This macro seems to have stopped working with 9.1.5
#showtooltip Delete
/run DeleteCursorItem();
/run print(“Item Deleted”)
Any idea why?
This macro seems to have stopped working with 9.1.5
#showtooltip Delete
/run DeleteCursorItem();
/run print(“Item Deleted”)
Any idea why?
It can no longer be called directly from a macro or the chat window.
Here’s something that will at least let you skip typing in the word “delete”
/run StaticPopup1Button1:SetScript("OnUpdate", function(self) self:Enable() end)
API Reference:
Wow why would they stop something like this. Deleting things is annoying.
It used to be possible to grief people by giving them a macro that would delete everything in their inventory, and then trick them into installing it as a weakaura or something.
Ahh go figure.
StaticPopupDialogs.DELETE_GOOD_ITEM=StaticPopupDialogs.DELETE_ITEM
StaticPopupDialogs.DELETE_GOOD_ITEM.enterClicksFirstButton = 1
Will replace the “type delete” dialogue with the standard “just click or press enter” dialogue.
I just threw together a new addon that tries to solve this a different way.
https://www.curseforge.com/wow/addons/acceptpopups/files
The addon is simply “shift-click” on the ‘yes’ or ‘accept’ button to auto-accept dialog popups for 24 hours. So you still have to type in “delete” once… but if you are deleting several items then its a breeze.
This applies to each kind of popup separately, so it you get something random like a guild invitation then you will still see it, with yes/no buttons.
You can still use an addon to get around the new restrictions. If you make an addon that runs the following code you will be able to use /click DeleteCursorItemButton
from a macro to delete your cursor item.
local b = CreateFrame("Button", "DeleteCursorItemButton")
b:SetScript("OnClick", function()
DeleteCursorItem()
end)
This work-around does not work in TBC classic . Was really hoping this would be a good solution.