Worked for me. The reason you don't see it select the mail is because it requires another function to update the display of the list.
The way he probably got those functions is by rummaging around in the UMM addon folder. First you find the "Empty" button in the xml file. In this addon it's not so easy because there are a lot of files and it's not obvious where you will find it. When you find it you look at the onclick event for it.
Code: Select all
<OnClick>
this:GetParent():ButtonClick("tagempty");
</OnClick>
Then we look for the ButtonClick function.
Code: Select all
this.ButtonClick = function(self, action)
if (string.lower(action) == "tagchars") then
UMMMailManager:MassTagMails("chars");
getglobal(self:GetParent():GetName().."TOC"):RefreshTOC();
elseif (string.lower(action) == "tagguildies") then
UMMMailManager:MassTagMails("guildies");
getglobal(self:GetParent():GetName().."TOC"):RefreshTOC();
elseif (string.lower(action) == "tagfriends") then
UMMMailManager:MassTagMails("friends");
getglobal(self:GetParent():GetName().."TOC"):RefreshTOC();
elseif (string.lower(action) == "tagother") then
UMMMailManager:MassTagMails("other");
getglobal(self:GetParent():GetName().."TOC"):RefreshTOC();
elseif (string.lower(action) == "tagempty") then
UMMMailManager:MassTagMails("empty");
getglobal(self:GetParent():GetName().."TOC"):RefreshTOC();
else
UMMMailManager:StartAutomation(action);
end
self:CheckSelection();
end;
A you can see under "tagempty" there are the commands
Code: Select all
UMMMailManager:MassTagMails("empty");
getglobal(self:GetParent():GetName().."TOC"):RefreshTOC();
The first command tags the mails and the second one updates the display of the list.
With the delete command he just executed the function found in the onclick probably because the code there is more complex.
Code: Select all
<OnClick>
this:GetParent():ButtonClick("delete");
</OnClick>
Of course you need to be able to follow the code back to figure out what "this:GetParent()" refers to. In the same way you could use the empty onclick function directly.
Code: Select all
RoMScript("UMMFrameTab1Tools:ButtonClick('tagempty');")
This will do all the code including highlighting the selected messages and enabling the delete button.